Ad
  • Default User Avatar

    @Deantwo Thanks for the explanation. almost smashed my pc in rage

  • Custom User Avatar

    Your code returned "6 -214", but the test was expecting "542-214".

    It is a very common mistake people make in this kata. You now have to learn the difference between sorting a list of strings and sorting a list of numbers. Have fun!

    Here is a full comparison as an example:

     Int   String
     542   6       MAX
      54   542
      29   54
       6   5
       5   4
       4   4
       4   29
       1   1
       0   0
      -3   -64
      -6   -6
     -64   -3
    -214   -214    MIN
    
  • Custom User Avatar

    Which language are you referring to? Probably because your code is returning "6 -214".