InterviewSolution
Saved Bookmarks
| 1. |
Which is the most appropriate data structure for reversing a word?(a) queue(b) stack(c) tree(d) graphI'm obligated to ask this question of Reverse a Word using Stack topic in division Application of Stacks of Data Structures & Algorithms IThis question was addressed to me by my college director while I was bunking the class. |
|
Answer» RIGHT choice is (b) stack Best EXPLANATION: Stack is the most appropriate data structure for REVERSING a word because stack FOLLOWS LIFO principle. |
|