| Which is the most appropriate data structure for reversing a word?
Choose the correct option from below list
(1)stack
(2)queue
(3)graph
(4)tree
Answer:-(1)stack
Note:-Stack is the most appropriate data structure for reversing a word because stack follows LIFO principle. | | |