Ad
  • Custom User Avatar

    It fails only this sample test, but will probably fail more test cases from full test suite.
    Yes, your solution has an error.
    Did you try to recreate the test case for Number.MAX_SAFE_INTEGER locally and see how it works and why it might fail?

  • Custom User Avatar

    Did you try your solution with Number.MAX_SAFE_INTEGER?

    Your solution fails sample test for Number.MAX_SAFE_INTEGER, or actually for any number lager than 32 bytes.

  • Custom User Avatar

    It's about descending order, not reverse order. 2110 > 1201