Inserting a new item into a persistent singly linked list will not alter the existing list but create a new version with the item inserted into it.

  • 如果插入一个新的节点到持久化的单向链表中,我们不应该改变当前链表的状态,而需要创建一个新的链表而后插入指定节点。
目录 查词历史