Ad
  • Custom User Avatar

    Thanks man, its working now

  • Custom User Avatar

    You are probably getting tabs and spaces somehow mixed up in your solution. The problem is not related to sorting.

    Check in your IDE if you use spaces and tabs for indentation consistently. Initial solution does indeed use both (and it's not good), but you have to be really unlucky to get bitten by it in such small stub :)

  • Custom User Avatar

    In python when I'm trying to sort I getting this. I don't understand why.

    array2.sort()
                 ^
    IndentationError: unindent does not match any outer indentation level
    

    Thanks.