Q. Stack can be reversed without using extra space by

  • (A) using recursion
  • (B) using linked list to implement stack
  • (C) using an extra stack
  • (D) it is not possible
πŸ’¬ Discuss
βœ… Correct Answer: (B) using linked list to implement stack
Explanation: if linked list is used for implementing stack then it can be reversed without using any extra space.

Explanation by: Mr. Dubey
if linked list is used for implementing stack then it can be reversed without using any extra space.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
676
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate