Largest number using k swaps

Revision en2, by code_fille, 2015-06-29 22:02:58

Given a number n, how to perform atmost k swap operations on number's digits to get the largest number. Ex- n=7899, k=2 ans=9987

Tags implementation

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English code_fille 2015-06-29 22:02:58 51
en1 English code_fille 2015-06-29 20:23:38 107 Initial revision (published)