Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
Stack

Michael

Feb 5, 2024

I think stack is not either FIFO or LIFO. It is just LIFO

4

0

Comments
Comments
M
mariana.lopez.jaimez 2 years ago

I agree. Stacks are LIFO, and queues are FIFO. It may be tempting to generalize queues as stacks, but I think we should stick to make a distinction between them. I hope you can add a section dedicated to queues.

On this page