0

I was reading the chapter of stack in my book and there is this question in the exercise :

Describe a nonrecursive algorithm for enumerating all permutations of the
numbers {1, 2, . . . , n} using an explicit stack.

Understanding and implementing the recursive algorithm was easy. But I am not getting how to implement it with an explicit stack. What would be a possible solution for this? If you think that the hints would be self sufficient to solve this, please provide them only so that I can give it one more try!!

mbomb007
  • 3,788
  • 3
  • 39
  • 68
thisisashwani
  • 1,748
  • 2
  • 18
  • 25

0 Answers0