Drag the slider to change n and watch how each complexity class grows. O(n²) gets expensive fast — O(log n) barely moves. This is why algorithm choice matters.
| Complexity | Operations at n = 50 | Examples | Rating |
|---|---|---|---|
| O(1) | 1.00 | Hash lookup, array access | Excellent |
| O(log n) | 5.64 | Binary search, BST ops | Excellent |
| O(n) | 50 | Linear scan, sliding window | Good |
| O(n log n) | 282 | Merge sort, quick sort | Good |
| O(n²) | 2.5K | Bubble, selection, insertion sort | Acceptable |