KnowledgeBoat Logo

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