Ad
  • Custom User Avatar

    If '180' < '90' === true when sorting alphabetically '180' comes before '90', not what you wrote there.

  • Custom User Avatar

    No, you have to sort the values (using their weights), not replace them, see the expected output, there is no replacement there.
    Also read again the instructions about how to sort the numbers that have the same weight.

  • Custom User Avatar

    '9' comes before '90' as a string, the same way 'A' comes before 'AB'.

  • Custom User Avatar

    There's a problem. The result came when compared with '90' and '9'. It's like there's no strict rules why '90'should be ahead of '9' or '9' should be ahead of '90'. My code result came as two consequences.