Back to course home
0% completed
Vote For New Content
I don't believe you need a previous.Just set currentNode.next to the head of the...
Anthony DiFede
Jan 11, 2023
I don't believe you need a previous. Just set currentNode.next to the head of the Queue. On the very last iteration/node the queue will be empty so currentNode.next = null.

3
0
Comments
Comments
On this page