Created
April 1, 2018 02:48
-
-
Save okdolly-001/62a8ff8070ced0e58b5b48e857422c56 to your computer and use it in GitHub Desktop.
Coding interview snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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