153
boss
7y

Credits:Unknown

Comments
  • 18
    You don't have to use array if array size is 1 xD
  • 2
    .....if you haven't even declared it
  • 9
    Credit: myself
  • 1
    Or your array size equal 0
  • 2
    Lazy merge sort:
    Split the arrays and leave as is, they're all sorted anyway
  • 1
    @LicensedCrime When you use negative numbers as indices, they are taken as properties of the object itself. So it doesn't come under the array elements and hence the length.

    From SO.
    Thanks anyways. I learned sth new.
Add Comment