Top Array Coding Interview Questions
Filters
+ 19 more
+ 418 more
One of the essential topics for programming interviews is Array. As you learn to code, you'll discover that arrays are used in multiple problems. We have a collection of array coding questions divided into three sections: easy, medium, and hard. Build a strong foundation by dealing with the array questions. Solve all these array interview questions and start your journey.
Problem Title
EXP
Difficulty
Avg Time to solve
Attempted
K Largest Element
249
80
Moderate
10 mins
5.8k
Cube Sum Pairs
91
40
Easy
15 mins
2.3k
Copy And Reverse The Array
55
40
Easy
10 mins
2.9k
Left Rotations of An Array
18
80
Moderate
10 mins
0.4k
Binary Array Sorting
20
40
Easy
20 mins
3.2k
Hotel Floors
16
40
Easy
10 mins
1.2k
Product Array Puzzle
32
40
Easy
15 mins
1.3k
Maximum of minimum for every window size
110
120
Hard
45 mins
5.6k
Relative Sorting
29
80
Moderate
25 mins
3.1k
Linear Probing
23
40
Easy
15 mins
0.3k
Positive Negative Pair
9
40
Easy
10 mins
0.5k
Chess Tournament
104
40
Easy
20 mins
6.8k
Ninja Fight
17
40
Easy
10 mins
0.3k
Generate Binary Numbers
29
40
Easy
10 mins
1.1k
Count Distinct Elements In Every Window
6
80
Moderate
15 mins
0.4k
Missing number in Arithmetic progression
29
40
Easy
15 mins
1.8k
Replace Each Element Of Array With Its Corresponding Rank
7
40
Easy
10 mins
0.2k
Minimum and Maximum Cost to buy N Candies
12
120
Hard
10 mins
2.6k
Sort an array in wave form
27
40
Easy
10 mins
2.9k
Count all sub-arrays having sum divisible by k
121
80
Moderate
15 mins
7.2k
Search For Integers With Given Difference And At Given Distance
28
80
Moderate
20 mins
0.9k
Count Distinct Element in Every K Size Window
36
40
Easy
15 mins
2.4k
Longest Subarray Zero Sum
76
40
Easy
15 mins
10.2k
Best Time to Buy and Sell Stock
202
80
Moderate
20 mins
30.3k
Duplicate In Array
422
40
Easy
15 mins
53.1k
K Largest Element
Moderate
80
249 upvotes
Cube Sum Pairs
Easy
40
91 upvotes
Copy And Reverse The Array
Easy
40
55 upvotes
Left Rotations of An Array
Moderate
80
18 upvotes
Binary Array Sorting
Easy
40
20 upvotes
Hotel Floors
Easy
40
16 upvotes
Product Array Puzzle
Easy
40
32 upvotes
Maximum of minimum for every window size
Hard
120
110 upvotes
Relative Sorting
Moderate
80
29 upvotes
Linear Probing
Easy
40
23 upvotes
Positive Negative Pair
Easy
40
9 upvotes
Chess Tournament
Easy
40
104 upvotes
Ninja Fight
Easy
40
17 upvotes
Generate Binary Numbers
Easy
40
29 upvotes
Count Distinct Elements In Every Window
Moderate
80
6 upvotes
Missing number in Arithmetic progression
Easy
40
29 upvotes
Replace Each Element Of Array With Its Corresponding Rank
Easy
40
7 upvotes
Minimum and Maximum Cost to buy N Candies
Hard
120
12 upvotes
Sort an array in wave form
Easy
40
27 upvotes
Count all sub-arrays having sum divisible by k
Moderate
80
121 upvotes
Search For Integers With Given Difference And At Given Distance
Moderate
80
28 upvotes
Count Distinct Element in Every K Size Window
Easy
40
36 upvotes
Longest Subarray Zero Sum
Easy
40
76 upvotes
Best Time to Buy and Sell Stock
Moderate
80
202 upvotes
Duplicate In Array
Easy
40
422 upvotes