Last active
June 15, 2020 04:42
-
-
Save toniesteves/73e7964dc1c4395fcbf4c38411c9d1a6 to your computer and use it in GitHub Desktop.
This file contains 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
authors = ['Andrew Ng', 'Josh Stamer', 'Kent Beck', | |
'Martin Fowler', 'Erick Evans', 'Erich Gamma']; | |
def first_two_authors(authors): | |
print(authors[0]) # O(1) | |
print(authors[1]) # O(1) | |
first_two_authors(authors) # O(2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment