Replies: 1 comment 1 reply
-
You are not asked about the biggest number, but the next number bigger than the given one. Additionally, please remember that questions about kata should be asked in kata discussions section, or in the Good luck! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://www.codewars.com/kata/55983863da40caa2c900004e/ (trainer link edited out by a mod)
According to the description "Create a function that takes a positive integer and returns the next bigger number that can be formed by rearranging its digits", the first two examples given are correct, but the next one is wrong: given 2017, the suggested number as solution 2071 obviously it is not the biggest number that can be obtained from the original one. Assuming the response 2071 is still correct, how to figure out how many digits of the input number should be considered for rearrangement ?
Beta Was this translation helpful? Give feedback.
All reactions