Skip to content

Instantly share code, notes, and snippets.

@okdolly-001
Created April 1, 2018 02:48
Show Gist options
  • Save okdolly-001/62a8ff8070ced0e58b5b48e857422c56 to your computer and use it in GitHub Desktop.
Save okdolly-001/62a8ff8070ced0e58b5b48e857422c56 to your computer and use it in GitHub Desktop.
Coding interview snippets
1.Remove duplicates in a list
cleanlist = []
for n in oldlist:
if n not in cleanlist:
cleanlist.append(n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment