AniketTheProgrammer
Home
(current)
Courses
Projects
YT Projects
Coding Questions
Notification
Contact Us
Log In
All Topics
C Language
C++ Language
Greedy Algorithm
Hashing
Java Language
Linked List
Python
Queue
Stack
String
Sorting
Searching
Recursion
Backtracking
Dynamic Programming
Graph Theory
Bit Manipulation
Mathematics
Sliding Window Technique
Divide And Conquer
Matrix Manipulation
Two Pointers
Binary Tree
Topic: Array-question / Level: Intermediate
201. Write a program to rotate an array to the right by k positions.
202. Write a program to merge two sorted arrays into one sorted array.
203. Write a program to find the first missing positive integer in an unsorted array.
204. Write a program to find the longest substring with at most k distinct characters.
205. Write a program to find the intersection of two arrays.
206. Write a program to find the majority element in an array.
207. Write a program to rearrange an array so that every two adjacent elements have different values.
208. Write a program to partition an array into three parts based on a pivot.
209. Write a program to find the longest continuous sequence in an array.
210. Write a program to check if two arrays are equal (same elements and frequency).
211. Write a program to find the maximum sum of a subarray of size k.
212. Write a program to find all unique triplets in an array that sum to a specific value.
213. Write a program to count the number of inversions in an array.
214. Write a program to check if an array can form an arithmetic progression.
215. Write a program to rearrange an array such that positive and negative numbers alternate.
216. Write a program to find the maximum product of two integers in an array.
217. Write a program to find the first unique element in an array.
218. Write a program to find the length of the longest increasing subsequence.
219. Write a program to find the minimum window substring.
220. Write a program to implement a binary search on a sorted array.
221. Write a program to find two numbers in an array that sum to a specific target.
222. Write a program to find all pairs in an array that have a specific difference.
223. Write a program to calculate the cumulative sum of an array.
224. Write a program to rotate a 2D matrix 90 degrees clockwise.
225. Write a program to sort an array of strings by their lengths.
226. Write a program to find the maximum difference between two elements in an array where the larger element appears after the smaller one.
227. Write a program to find the longest consecutive sequence in an unsorted array.
228. Write a program to remove duplicates from a sorted array.
229. Write a program to find the median of two sorted arrays.
230. Write a program to find all subsets of an array.
Previous
1
2
3
4
5
6
7
Next
More Levels
Beginner
Advanced
Most Visited
Write a program to find the maximum element in an array.
Write a program to find the minimum element in an array.
Write a program to find the mode of an array.
Write a program to find the maximum sum of a row in a 2D array.
Write a program to find the mode of an array of numbers.
Write a program to find the longest consecutive sequence in an unsorted array.
Write a program to find all elements that appear more than n/3 times in an array.
Write a program to find the number of ways to reach the nth step with 1, 2, or 3 steps.
Write a program to calculate the sum of all elements in an array.
Write a program to find the number of paths from the top-left to the bottom-right of a grid.
Write a program to create an array from a string input.
Write a program to find the number of uppercase letters in each string of an array.
Write a program to calculate the cumulative sum of an array.
Write a program to implement a dynamic array that resizes automatically.
Write a program to rotate an array to the right by k positions.