Computer Science
Reversing a word/line is an application of Stack.
Python Stack
2 Likes
Answer
True
Reason — Reversing a word or a line is an application of the stack data structure. This can be accomplished by pushing each character onto a stack as it is read. When the line is finished, characters are popped off the stack, and they will come off in reverse order.
Answered By
3 Likes
Related Questions
Fill in the blanks:
The process of inserting an element in a queue is called _________ while deleting an element from a queue is called _________.
Single-ended linear structure is a type of queue data structure.
The insertion and deletion from a Stack takes place only from the 'TOP'.
A queue behaves on the basis of LIFO principle.