1.

How many stacks are required for reversing a word algorithm?(a) one(b) two(c) three(d) fourMy query is from Reverse a Word using Stack in chapter Application of Stacks of Data Structures & Algorithms II got this question in homework.

Answer»

The CORRECT OPTION is (a) one

Explanation: Only 1 STACK is required for REVERSING a WORD using stack. In that stack, push and pop operations are carried out.



Discussion

No Comment Found

Related InterviewSolutions