leetcode, LC13: copy-list-with-random-pointer

1 题目描述 如今有一个这样的链表:链表的每个节点都附加了一个随机指针,随机指针可能指向链表中的任意一个节点或者指向空。 请对这个链表进行深拷贝。 A linked list is given such that each node contains an additional random pointer which could point to any node in the list or
相关文章
相关标签/搜索