Showing posts with label Find next greater number with same set of digits. Show all posts
Showing posts with label Find next greater number with same set of digits. Show all posts

Interesting, How to find next greater number with same digits

Given a number N, find the smallest number that has same set of digits as N and is greater than N. If theres no number greater than N by same same set of digits...