Ad
  • Custom User Avatar

    Ohh i see a number should bigger than input just a 1 step

    A big thanks :)

  • Custom User Avatar

    That algorithm isn't right, you can easily see it in those tests.

    6136 (the expected value) is less than 6361 (the value your function returned) and is greater than 3661 (the input value).

  • Custom User Avatar

    i don't know what happend when i try to attempt my code it's show error like this

    • nextBigger(29666682040452) -> expected 92666682404052 to equal 29666682040524
    • nextBigger(3661) -> expected 6361 to equal 6136
    • nextBigger(123456789) -> expected 214365879 to equal 123456798
    • nextBigger(2877555444322111) -> No brute-force.: expected 8277555444322111 to equal 3111222444555778
    • and more on Bigger Number , Random test

      I have check the number on next one and if there bigger than the front one
      then i swap numbers and look for next before digit i already swap.

      Did i miss understand something if someone understand please give me advice.

      *** PS.Javascript ***