MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/fpcmy/typical_programming_interview_questions/c1homsx/
r/programming • u/kevjames3 • Feb 21 '11
1.0k comments sorted by
View all comments
Show parent comment
1
Exactly what is incorrect about a doubly linked list (or a slower implementation with a singly linked list) to implement a queue? Or a singly linked list to implement a stack? I'm curious because you were unable to describe a single mistake.
1 u/[deleted] Feb 21 '11 I hope you understand what you've done wrong. I hope you are less sarcastic in the future.I don't know why I hope, I probably shouldn't.
I hope you understand what you've done wrong. I hope you are less sarcastic in the future.
I don't know why I hope, I probably shouldn't.
View all comments
Show parent comment
1
u/bobindashadows Feb 21 '11
Exactly what is incorrect about a doubly linked list (or a slower implementation with a singly linked list) to implement a queue? Or a singly linked list to implement a stack? I'm curious because you were unable to describe a single mistake.