Permutations

Revision en2, by LIFE_GOES_ON, 2020-06-26 23:19:26

Given a string S. How many permutations of string s is lexicographically smaller than S . If S = "cda" answer will be 2 . And the strings are {"acd","adc"}.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English LIFE_GOES_ON 2020-06-27 05:39:36 8
en2 English LIFE_GOES_ON 2020-06-26 23:19:26 2 Tiny change: 'strings ar {"acd","a' -> 'strings are {"acd","a'
en1 English LIFE_GOES_ON 2020-06-26 23:15:08 169 Initial revision (published)