1 thought on “15 min Java Coding Challenge – Copy List With Random Pointer

  1. phew …. this too took a bit of time to grasp. So you are creating a map with actual node as key and copyNode as its value. In second loop you are copying randomNode value from map into randomNode value of copyList.
    I know its hard to explain but i see it now !!!
    Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *