Help in UVA 732 -anagrams by stack

Revision en1, by getdebarghya1025, 2020-07-30 17:32:17

UVA — 732

Somebody help me with this problem. How to get all the permutations of pop and push operations? as there are no constraints specified I think checking all the permutation by brute force will get me TLE, so is there any good approach to solve this problem?

Tags uva 732, #permutation, #stack

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English getdebarghya1025 2020-07-30 17:32:17 418 Initial revision (published)