Arrays are one of the most fundamental and widely used data structures in programming. These questions test your ability to apply techniques such as hashing, sorting, binary search, two-pointers, sliding window, divide and conquer, dynamic programming, etc.
| Array Questions | Practice Link | Code Solutions | Video Solutions | HINT |
|---|---|---|---|---|
| Wave Array | GeeksForGeeks | |||
| Subarray with given sum | Leetcode | |||
| Missing number in array | Leetcode | |||
| Rotate Array | Leetcode | Video | ||
| Find duplicates in an array | Leetcode | |||
| Remove all occurrences of Given Number | Leetcode | |||
| Remove Duplicates from Sorted Array | Leetcode | |||
| Move all zeroes to the end of the array | Leetcode | |||
| Sort an array of 0s, 1s and 2s | Leetcode | |||
| Intersection of two arrays | Leetcode | |||
| Reverse an array | Leetcode | |||
| Swapping Elements in an Array | ||||
| Remove Min and Max in an Array | Leetcode | |||
| Two Sum | Leetcode |
| Array Questions | Practice Link | Code Solutions | Video Solutions | HINT |
|---|---|---|---|---|
| Valid Moutain Array | Leetcode | Code | Video | 2 pointers |
| Majority Element | Leetcode | Code | Video | Sorting / or Boyer-Moore Voting Algorithm |
| Kth largest/smallest element in an array | Leetcode | Code | Video | soritng / priority q |
| Trapping Rain Water | Leetcode | |||
| Coin Change | Leetcode | |||
| Stock span problem | Leetcode | |||
| Merge k Sorted Arrays | Leetcode | |||
| Next Permutation | Leetcode | Code | Video | 2 poniters |
| Kadane's Algorithm | Leetcode |
| Array Questions | Practice Link | Code Solutions | Video Solutions | HINT |
|---|---|---|---|---|
| Merge Without Extra Space | GeeksForGeeks | |||
| Next Smallest Palindrome | GeeksForGeeks |