[LeetCode]Copy List with Random Pointer

来源:互联网 发布:支付宝知托付 广告 编辑:程序博客网 时间:2024/06/08 10:25

A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.

Return a deep copy of the list.

想了好久觉得这题不可能这么麻烦。看了答案。很巧。。赞。。。

http://fisherlei.blogspot.com/2013/11/leetcode-copy-list-with-random-pointer.html


0 0