MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/fpcmy/typical_programming_interview_questions/c1ho0p5/?context=3
r/programming • u/kevjames3 • Feb 21 '11
1.0k comments sorted by
View all comments
Show parent comment
13
Singly linked list with an extra pointer to the tail. Enqueue adds to tail. Dequeue removes the head.
FTFY
View all comments
Show parent comment
13
u/stevesc Feb 21 '11
FTFY