14 array problems, solved step by step.
Problems where the input is a plain array and the work is in how you walk it: one pass with a running value, two indices moving toward each other, or a helper structure built on the way. Each one is solved in 22 languages from brute force to optimal, with code you can run on the page.
0/14 solved
- Two SumEasy
- Contains DuplicateEasy
- Best Time to Buy and Sell StockEasy
- Majority ElementEasy
- Missing NumberEasy
- Maximum SubarrayMedium
- Product of Array Except SelfMedium
- 3SumMedium
- Container With Most WaterMedium
- Merge IntervalsMedium
- Search in Rotated Sorted ArrayMedium
- Kth Largest Element in an ArrayMedium
- Jump GameMedium
- Trapping Rain WaterHard