Top 50 Array Coding Problems for Interviews
Last Updated :
22 Mar, 2025
Improve
Array is one of the most widely used data structure and is frequently asked in coding interviews to the problem solving skills. The following list of 50 array coding problems covers a range of difficulty levels, from easy to hard, to help candidates prepare for interviews.
Easy Problems
- Second Largest Element
- Third Largest Element
- Three Great Candidates
- Max Consecutive Ones
- Move All Zeroes To End
- Reverse Array in Groups
- Rotate Array
- Wave Array
- Plus One
- Stock Buy and Sell – One Transaction
- Repetitive Addition Of Digits
- Remove All Occurrences of Element
- Remove Duplicates from Sorted Array
- Alternate Positive Negative
- Insert Duplicate Element
- Array Leaders
- Missing and Repeating in Array
- Missing Ranges of Numbers
Medium Problems
- Next Permutation
- Majority Element
- Majority Element II
- Stock Buy and Sell – Multiple Transactions
- Minimize the Heights II
- Maximum Subarray Sum
- Maximum Product Subarray
- Product of Array Except Self
- Subarrays with Product Less Than K
- Split Into Three Equal Sum Segments
- Maximum Consecutive 1s After Flipping 0s
- Last Moment Before Ants Fall Out of Plank
- Find 0 with Farthest 1s in a Binary
- Intersection of Interval Lists
- Rearrange Array Elements by Sign
- Meeting Scheduler for Two Persons
- Longest Mountain Subarray
- Transform and Sort Array
- Minimum Swaps To Group All Ones
- Minimum Moves To Equalize Array
- Minimum Indices To Equal Even-Odd Sums
Hard Problems
- Trapping Rain Water
- Maximum Circular Subarray Sum
- Smallest Missing Positive Number
- Jump Game
- Closest Subsequence Sum
- Smallest Non-Representable Sum in Array
- Smallest Range Having Elements From K Lists
- Candy Distribution
- Count Subarrays with K Distinct Elements
- Next Smallest Palindrome
- Maximum Sum Among All Rotations
Related Articles:
- Blind 75
- Top 75 DSA Interview Questions
- Top 50 String Coding Problems for Interviews
- Top 50 Tree Coding Problems for Interviews
- Top 50 Graph Coding Problems for Interviews
- Top 50 Dynamic Programming Coding Problems for Interviews
- Top 50 Sorting Coding Problems for Interviews
- Top 50 Searching Coding Problems for Interviews
- Top 50 Binary Search Tree Coding Problems for Interviews