leetcode

138. Copy List with Random Pointer

Map Solution

Time complexity: O(n)

Space complexity: O(n)