## Top Array Coding Interview Questions

Filters

Topics

+ 26 more

Company

+ 41 more

Difficulty

Arrays are an integral part of coding interviews for placements. We have created a guide featuring top array interview questions to strengthen the foundation of arrays and data structures to bring you a step closer to your dream job.

Problem Title

Difficulty

Avg Time to solve

Attempted

Find All Triplets With Zero Sum

14

Moderate

30 mins

178

Sort An Array According To The Count Of Set Bits

10

Moderate

25 mins

89

Form a Triangle

14

Easy

15 mins

101

Partition to K equal sum subsets

6

Moderate

40 mins

86

Maximum sum of non-adjacent elements

2

Moderate

15 mins

116

Max GCD Pair

5

Moderate

35 mins

177

Subarray with equal occurrences

5

Moderate

15 mins

108

Partition a set into two subsets such that the difference of subset sums is minimum.

9

Hard

10 mins

108

Subarray With Given Sum

2

Moderate

15 mins

108

Equilibrium indices of a Sequence

3

Moderate

15 mins

128

Algorithm to find best insert position in sorted array

6

Easy

10 mins

151

Largest subarray with equal number of 0s and 1s

2

Moderate

10 mins

68

First and Last Position of an element in Sorted Array

14

Easy

20 mins

146

Avoiding traps

6

Moderate

25 mins

199

Two Sum

34

Easy

10 mins

423

Minimum Cost to Reach End

3

Moderate

25 mins

101

Kth Largest Number

5

Moderate

30 mins

82

Maximum sum of two non-overlapping subarrays of a given size

21

Moderate

15 mins

157

Mean Median Mode

1

Easy

10 mins

116

Rearrange The Array

14

Moderate

15 mins

98

Distinct Subsequences

12

Moderate

10 mins

304

Count Ways To Reach The N-th Stairs

13

Moderate

30 mins

852

Pythagorean Triplets

1

Moderate

35 mins

139

Boxes Of Chocolates

1

Moderate

20 mins

81

Consecutive elements

8

Moderate

15 mins

458

Find All Triplets With Zero Sum

Moderate

14 upvotes

Sort An Array According To The Count Of Set Bits

Moderate

10 upvotes

Form a Triangle

Easy

14 upvotes

Partition to K equal sum subsets

Moderate

6 upvotes

Maximum sum of non-adjacent elements

Moderate

2 upvotes

Max GCD Pair

Moderate

5 upvotes

Subarray with equal occurrences

Moderate

5 upvotes

Partition a set into two subsets such that the difference of subset sums is minimum.

Hard

9 upvotes

Subarray With Given Sum

Moderate

2 upvotes

Equilibrium indices of a Sequence

Moderate

3 upvotes

Algorithm to find best insert position in sorted array

Easy

6 upvotes

Largest subarray with equal number of 0s and 1s

Moderate

2 upvotes

First and Last Position of an element in Sorted Array

Easy

14 upvotes

Avoiding traps

Moderate

6 upvotes

Two Sum

Easy

34 upvotes

Minimum Cost to Reach End

Moderate

3 upvotes

Kth Largest Number

Moderate

5 upvotes

Maximum sum of two non-overlapping subarrays of a given size

Moderate

21 upvotes

Mean Median Mode

Easy

1 upvote

Rearrange The Array

Moderate

14 upvotes

Distinct Subsequences

Moderate

12 upvotes

Count Ways To Reach The N-th Stairs

Moderate

13 upvotes

Pythagorean Triplets

Moderate

1 upvote

Boxes Of Chocolates

Moderate

1 upvote

Consecutive elements

Moderate

8 upvotes

## Top Problem Lists

Striver SDE Sheet Problems

Top Graphs Interview Questions

Top Trees Interview Questions

Top Uber Coding Interview Questions

Top Apple Coding Interview Questions

Top Recursion And Backtracking Interview Questions

Top E-commerce (Flipkart, Snapdeal, etc.) Interview Questions

Book - Cracking The Coding Interview Questions

Top Dynamic Programming Questions

Top Fintech Software Engineer Interview Questions

Top Adobe Coding Interview Questions

Top Facebook Coding Interview Questions

Top Google Coding Interview Questions

Top Array Coding Interview Questions

Top Microsoft Coding Interview Questions

Top Amazon Coding Interview Questions