Skip to content

Instantly share code, notes, and snippets.

@csierra15
Created April 16, 2018 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csierra15/a37ccf641c49688fb0430bf3403cbe2f to your computer and use it in GitHub Desktop.
Save csierra15/a37ccf641c49688fb0430bf3403cbe2f to your computer and use it in GitHub Desktop.
Big O Drills
Even or odd: constant time
Are you here?: polynomial time
Doubler: linear time
Naive Search: linear time
Creating pairs: polynomial time
Computing fibonaccis: linear time
An Efficient Search: logarithmic time
Random element: constant time
Is it prime?: linear time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment