Question
Data Structures Quick Check 5 of 55 of 5 Items Question Which of the following makes the reversal of elements easy?(1 point) Responses stack stack graphs graphs tree tree maps maps Skip to navigation page 9 of 9
Answers
GPT-4o mini
The correct answer is **stack**.
Stacks use a Last In, First Out (LIFO) principle which makes it easy to reverse elements, as you can simply pop elements off the stack in the reverse order they were added.
Stacks use a Last In, First Out (LIFO) principle which makes it easy to reverse elements, as you can simply pop elements off the stack in the reverse order they were added.