Help in UVA 732 -anagrams by stack

Правка en1, от 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?

Теги uva 732, #permutation, #stack

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский getdebarghya1025 2020-07-30 17:32:17 418 Initial revision (published)