Saturday, February 8, 2014

Find the next higher number which has the exact same set of digits as the original number

Given a number, find the next higher number which has the exact same set of digits as the original number.
For example: given 382765 return 385267

 

1

No comments:

Post a Comment