How to find the largest number smaller than the given number
with the same combination of digits in the given number.

eg.,
     if the given number is 321
     the algorithm should give 231

     if the input is 5342
     the output should be 5432.

     if theinput is 11261
     the output should be 11162.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to