1. Time & Space Complexity
Warm-up problems where the point is to say the Big O of your own code before you submit it.
Your progress0 of 6
6easy
0medium
0hard
Understand the topic
Big O tells you how the work grows when the input grows. You don't count exact steps, you count the shape: one loop over n items is O(n), a loop inside a loop is O(n²), and halving the input each step is O(log n).
The problems here are easy on purpose. Solve each one, then say its time and space complexity out loud before you submit. Where the brute force and the smart answer differ (good pairs, smaller numbers), feel the difference between O(n²) and O(n).
| # | Problem | Pattern | Level | ||
|---|---|---|---|---|---|
| 1 | Running Sum of 1d Array #1480 | Single pass | Easy | LeetCode ↗ | |
| 2 | Richest Customer Wealth #1672 | Nested loops | Easy | LeetCode ↗ | |
| 3 | Find Numbers with Even Number of Digits #1295 | Digit counting | Easy | LeetCode ↗ | |
| 4 | How Many Numbers Are Smaller Than the Current Number #1365 | Counting array | Easy | LeetCode ↗ | |
| 5 | Final Value of Variable After Performing Operations #2011 | Simulation | Easy | LeetCode ↗ | |
| 6 | Number of Good Pairs #1512 | Counting | Easy | LeetCode ↗ |
Nothing matches that filter.
Work top to bottom — each list goes from easy to hard. Try a problem for at least 15 minutes before opening a hint. Ticks are saved in your browser.

