Grokking Data Structures & Algorithms for Coding Interviews
Ask Author
Back to course home

0% completed

Vote For New Content
Paritosh Paliwal
Is there an reason to implement queue using LinkedList in Reverse order?

Paritosh Paliwal

Apr 25, 2025

Basically the first node in queue (front) is the first not on linked list. So while queue is

1 --> 2 --> 3

The underlying Linked List is

3 --> 2 --> 1

0

0

Comments
Comments

On this page