Created
July 22, 2019 23:12
-
-
Save SuitcaseCoder/b312955f3cdf9b2a9bd3bf019291749f to your computer and use it in GitHub Desktop.
Big O Drills _ thinkful
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. `Even or Odd`: because it takes the same time every time to check whether a number is divisible by 2 or not, then this is `CONSTANT` | |
| 2. `Are you here`: this function has nested loops, meaning that for ever nested loop there is, time is added to its run time, `POLYNOMIAL` | |
| 3. `Doubler`: `LINEAR` | |
| 4. `Naive Search`: `LINEAR` | |
| 5. `Creating Pairs`: `POLYNOMIAL` | |
| 6. `Computing Fibonaccis`: LINEAR | |
| 7. `An efficient Search`: `LOGARITHMIC` | |
| 8. `Find random element`: `CONSTANT` | |
| 8. `Is it prime`: `LINEAR` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment