Last active
May 15, 2022 23:56
-
-
Save saadullahaleem/840981ca6672c9f63c75829617bea5a1 to your computer and use it in GitHub Desktop.
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
a = list() | |
b = set() | |
c = "some value" | |
print(c in a) # O(n) | |
print(c in b) # O(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment