Skip to content

Cloning Linked List with random pointer : Approach 2#576

Open
6vam4arya wants to merge 7 commits intoloveBabbar:mainfrom
6vam4arya:clone_LL_randomptr_approach-2
Open

Cloning Linked List with random pointer : Approach 2#576
6vam4arya wants to merge 7 commits intoloveBabbar:mainfrom
6vam4arya:clone_LL_randomptr_approach-2

Conversation

@6vam4arya
Copy link
Copy Markdown

I have added the file containing code for approach 2 which was meant to clone a Linked List where each node has a random pointer along with its usual next pointer and data value using the unordered map. This has Time Complexity of Big O(n) and Space Complexity of Big O(n).
SUBMISSION SCREENSHOT
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant