+---------+
| Big-O |
+-------------------------+
| O(1) | Constant |
+-------------------------+
| O(logn) | Logarithmic |
+-------------------------+
| O(n) | Linear |
+-------------------------+
| O(nlogn)| n log-start n |
+-------------------------+
| O(n²) | Quadratic |
+---------+---------------+
Complexity is measure in time of execution and memory of execution
X | Y |
---|---|
Elements | Operations |