Arrays

Problems and patterns using arrays: two pointers, sliding window, prefix sums.

Comprehensive Problem Set

Total: 107 problems
Beginner
11

10% of total

Intermediate
37

35% of total

Advanced
59

55% of total

📚 Recommended Learning Path

Start with Beginner problems to master the basics, progress through Intermediate for real-world scenarios, and challenge yourself with Advanced problems to ace interview questions and competitive coding contests.

1.

Array Store & Print

Store elements in an array and print them.

Beginner
2.

Array Reverse Display

Read n number of values and display them in reverse order.

Beginner
3.

Array Sum Calculation

Find the sum of all elements of the array.

Beginner
4.

Array Copy

Copy the elements of one array into another array.

Beginner
5.

Count Duplicate Elements

Count the total number of duplicate elements in an array.

Beginner
6.

Print Unique Elements

Print all unique elements in an array.

Beginner
7.

Merge Two Sorted Arrays (Descending)

Merge two arrays of the same size sorted in descending order.

Intermediate
8.

Frequency of Array Elements

Count the frequency of each element of an array.

Beginner
9.

Find Maximum & Minimum

Find the maximum and minimum elements in an array.

Beginner
10.

Separate Odd & Even Arrays

Separate odd and even integers into separate arrays.

Intermediate
11.

Sort Array Ascending

Sort elements of an array in ascending order.

Intermediate
12.

Sort Array Descending

Sort the elements of the array in descending order.

Intermediate
13.

Insert in Sorted Array

Insert a value into a sorted array (maintaining order).

Intermediate
14.

Insert in Unsorted Array

Insert a value into an array at a specific position.

Intermediate
15.

Delete Element from Array

Delete an element at a desired position from an array.

Intermediate
16.

Second Largest Element

Find the second largest element in an array.

Intermediate
17.

Second Smallest Element

Find the second smallest element in an array.

Intermediate

17 problems in this category

Master all 107 array problems to build a strong foundation in data structures and algorithms!