Considering the data given in the previous question, if the stack A had 4 entries, then the number of possible permutations that can be printed will be:
Writing code in comment?
Please use ide.geeksforgeeks.org,
generate link and share the link here.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy