Given a singly linked list node type, print the list front to back and back to front without extra storage, then build a FIFO queue on top of the same nodes.
Given a singly linked list node type, print the list front to back and back to front without extra storage, then build a FIFO queue on top of the same nodes.
This question is free
Log in to read the full question, run your code and see the solution.
Be the first to discuss this question
Approaches, follow-up questions and how the interview went. Log in to read and join the discussion.