32 problems
Array interview problems
32 Array problems, from easy to hard. Each one has an editorial explaining the approach and its complexity, and a visualizer that runs the solution step by step on the example input or your own.
Easy (16)
- 1. Two SumEasy
- 25. Remove Duplicates from Sorted ArrayEasy
- 26. Remove ElementEasy
- 63. Plus OneEasy
- 83. Merge Sorted ArrayEasy
- 109. Best Time to Buy and Sell StockEasy
- 147. Majority ElementEasy
- 173. Contains DuplicateEasy
- 182. Summary RangesEasy
- 256. Max Consecutive OnesEasy
- 381. Shortest Distance to Target String in a Circular ArrayEasy
- 383. Sum of Squares of Special ElementsEasy
- 390. Distribute Elements Into Two Arrays IEasy
- 396. Find the Largest Almost Missing IntegerEasy
- 397. Unique 3-Digit Even NumbersEasy
- 416. Smallest Stable Index IEasy
Medium (12)
- 29. Next PermutationMedium
- 77. Remove Duplicates from Sorted Array IIMedium
- 110. Best Time to Buy and Sell Stock IIMedium
- 116. Longest Consecutive SequenceMedium
- 153. Rotate ArrayMedium
- 183. Majority Element IIMedium
- 190. Product of Array Except SelfMedium
- 251. Find All Duplicates in an ArrayMedium
- 354. Minimum Moves to Make Array ComplementaryMedium
- 403. Jump Game IXMedium
- 417. Smallest Stable Index IIMedium
- 418. Minimum Operations to Sort a PermutationMedium