getdebarghya1025's blog

By getdebarghya1025, history, 4 years ago, In English

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?

Full text and comments »

  • Vote: I like it
  • -1
  • Vote: I do not like it