Inserting same node twice in LinkedList triggers infinite loop

前端 未结 0 1024
花落未央
花落未央 2020-12-04 13:56

I am trying to understand why does inserting the same node twice in a singly linked list causes an infinite loop.

I tried to insert the last node as the new head node

相关标签:
回答
  • 消灭零回复
提交回复
热议问题