+1 vote
in Data Structures & Algorithms I by (110k points)
Which is the most appropriate data structure for reversing a word?

(a) queue

(b) stack

(c) tree

(d) graph

I'm obligated to ask this question of Reverse a Word using Stack topic in division Application of Stacks of Data Structures & Algorithms I

This question was addressed to me by my college director while I was bunking the class.

1 Answer

+1 vote
by (408k points)
selected by
 
Best answer
Right choice is (b) stack

Best explanation: Stack is the most appropriate data structure for reversing a word because stack follows LIFO principle.

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.

Categories

...