codebuddies / DailyAlgorithms

Do a problem. Create (or find) your problem in the issues. Paste a link to your solution. See others' solutions of the same problem.
12 stars 1 forks source link

[Cracking The Coding Interview] 2.1: Remove Dups #14

Open jtkaufman737 opened 5 years ago

jtkaufman737 commented 5 years ago

Write code to remove duplicates from an unsorted linked list. How would you solve this problem if a temporary buffer is not allowed?

jtkaufman737 commented 5 years ago

hmmmmmmmm ok so this will traverse the thing and remove unnecessary/duplicate nodes https://repl.it/@jtkaufman737/MarriedVainRotation HOWEVER I'm still trying to figure out how to get it to return the original data structure just minus that one part

jtkaufman737 commented 5 years ago

Changed it to a recursive solution, same problem 😂 calling in the experts, oh wellz