Ad
  • Custom User Avatar

    I think users get examples like that with small numbers as well :)

  • Custom User Avatar

    Took me a moment, but I finally understood it. - You're saying if you move two numbers, you can get something that's bigger than the starting one and still smaller than if you move just one. - Should include one of those in your small number test cases, just so people don't think it's just big ones that do that...

    Input is 890, then your thing switched 8 and 9 (to get 980), but he's saying you can do better, (to get 908, which is even closer to original number, i.e. smallest step).

  • Custom User Avatar

    The kata asks you for the "next", meaning the smaller after the given one to satisfy certain criteria, doesn't it?