20.0 is the average grade of the class
5 is the worst iteration count for binary search
- Types of Operators
Use the “+” operator to add two numbers in JavaScript
Use the “-“ operator to subtract two numbers in JavaScript
Use the “*” operator to multiply two numbers in JavaScript
Use the “/” operator to divide two numbers in JavaScript
Use the “%” operator to get the remainder of a division operation in JavaScript
- Binary Search
- Binary search involves dividing the list in half constantly in search of the wantd number and the list must be sorted
- This means the timing or iteration counts is log2(n) where n is the size of the list