+1 vote
in Data Structures & Algorithms I by (110k points)
Operations required for reversing a word or a string using stack are push() and  pop().

(a) True

(b) False

My doubt is from Reverse a Word using Stack in portion Application of Stacks of Data Structures & Algorithms I

The question was posed to me in quiz.

1 Answer

+1 vote
by (444k points)
selected by
Best answer
Right option is (a) True

Explanation: Push operation inserts a character into the stack and pop operation pops the top of the stack.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.