Skip to content

Commit b4f8c65

Browse files
committed
CopyListWithRandomPointer138
1 parent f8f4506 commit b4f8c65

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/CopyListWithRandomPointer138.java

-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
* };
1616
*/
1717

18-
1918
public class CopyListWithRandomPointer138 {
2019
public RandomListNode copyRandomList(RandomListNode head) {
2120
return deepCopy(head, new HashMap<RandomListNode, RandomListNode>());
2221
}
2322

24-
2523
public RandomListNode deepCopy(RandomListNode node, Map<RandomListNode, RandomListNode> map) {
2624
if (node == null) return null;
2725
if (map.containsKey(node)) return map.get(node);

0 commit comments

Comments
 (0)