Top 40 Array Problems
Top 40 Array Problems
1. Two Sum
Given an array of integers and a target sum, find two numbers that add up to the target.
3. Rotate Array
Rotate the array by a given number of steps.
4. Move Zeroes
Move all zeros in an array to the end while maintaining relative order of non-zero elements.
5. Remove Element
Remove all occurrences of a specific element in the array.
6. Binary Search
Implement binary search to find a target in a sorted array.
20. 3Sum
Find all unique triplets that add up to zero.