merge sort one liner!! (1 line series)[no2]
h
rafrafraf (1395)

After making bogo sort in one line (and before attempting the hangman game in one line) i decided to challenge myself further by making merge sort in one line.

This was no easy task, not only is it difficult enough to use nested list comprehension, the hardest part was going about the while loop,

since merge sort is (typically) done using while loops and since you cannot use while loops inline.. i had to create a recursive function within a function as well as multiple if statements and list comprehension, ALL in one line!

although this proved to be much more challenging than inline bogosort, i actually didnt struggle as much with this from all the inline coding practise that bogo sort monstrosity gave me

JUST MADE HANGMAN IN ONE LINE: HERE

You are viewing a single comment. View All