10460 — Find the Permuted String "UVA"

Revision en2, by Profesora, 2017-08-23 01:36:47

Hello, Problem:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=646&page=show_problem&problem=1401 Code:https://ideone.com/YKNCzG Time complexity For the previous Code IS O(n!) n<=26 which gives me TLE every time i submit it it's seems to be madness to write such a backtracking code to solve this problem with such a big complexity,but sadly i don't know what should i do ! So would you please Help me !

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Profesora 2017-08-23 01:36:47 7 Tiny change: ' don't \n what shou' -> ' don't \n know what shou'
en1 English Profesora 2017-08-23 01:29:16 486 Initial revision (published)