Next Higher Number with Same Digits
Next Higher Number with Same Digits: a task in Terminal-Lego-15k (Harbor dataset). Implement a program that, given a positive integer, finds the next higher number which contains the exact same set of digits as the original number.
The task
Implement a program that, given a positive integer, finds the next higher number which contains the exact same set of digits as the original number.
Part of PrimeIntellect/Terminal-Lego-15k.