Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.5K+ articles
Misc
7.7K+ articles
Mathematical
5.1K+ articles
Arrays
4.2K+ articles
Amazon
1.9K+ articles
Greedy
1.4K+ articles
Sorting
1.1K+ articles
Hash
831+ articles
Hash
150+ articles
Arrays
263+ posts
Recent Articles
Max Gold Coins from Limited Plates
Last Updated: 07 July 2026
Given n gold boxes, where the i-th box contains a[i] plates and each plate in that box contains b[i] gold coins. A thief can carry at most t plates in total. He may take a...
read more
DSA
Arrays
Greedy Algorithms
Minimum Increments To Make Palindrome
Last Updated: 08 July 2026
Given an array of integers arr[] and an integer k. You may freely shuffle the elements of the array and shuffling is not counted as an operation.Find the minimum of number...
read more
DSA
palindrome
HashSet
Arrays
Countries at war
Last Updated: 03 July 2026
Given two armies, A and B, have the same number of soldiers. The power of their soldiers is given by arr1[] and arr2[], where the i-th soldier of Army A fights only the i-...
read more
DSA
Arrays
Drive the Car
Last Updated: 03 July 2026
Given an array arr[] where each element represents the length of a sub-track, and an integer k representing the maximum distance a car can travel on any sub-track.You may ...
read more
DSA
Arrays
Distance Travelled in a Permutation of 1 to n
Last Updated: 03 July 2026
Given an array arr[] consisting of a permutation of the set [1, 2, 3, …, n] for some positive integer n. Find the total distance you must travel starting from the position...
read more
DSA
HashSet
Arrays
Maximize Distance to Closest Person
Last Updated: 04 July 2026
Given an array arr[] representing a row of seats, where arr[i] = 1 denotes an occupied seat and arr[i] = 0 denotes an empty seat, choose an empty seat such that the distan...
read more
DSA
Arrays
two-pointer-algorithm
Meeting rooms - Find minimum meeting rooms
Last Updated: 23 July 2025
Given two arrays start[] and end[] such that start[i] is the starting time of ith meeting and end[i] is the ending time of ith meeting. Task is to find minimum number of r...
read more
Sorting
Hash
DSA
Arrays
Hash
Interval
Meeting Rooms - Room with Maximum Meetings
Last Updated: 17 October 2025
Given an integer n and a 2D array meetings[][], where n represents the number of classrooms numbered from 0 to n - 1, and meetings[i] = [starti, endi] represents a meeting...
read more
Sorting
Heap
DSA
Arrays
Greedy Algorithms
min-heap
Missing ranges of numbers
Last Updated: 02 January 2025
You have an inclusive interval [lower, upper] and a sorted array of unique integers arr[], all of which lie within this interval. A number x is considered missing if x is ...
read more
DSA
Arrays
Find k smallest elements in an array
Last Updated: 23 July 2025
Given an array arr[] and an integer k, the task is to find k smallest elements in the given array. Elements in the output array can be in any order.Examples:Input: arr[] =...
read more
Heap
DSA
Arrays
priority-queue
Delete an Element from a Given Position in an Array
Last Updated: 08 November 2024
Given an array of integers, the task is to delete an element from a given position in the array.Examples:Input: arr[] = [10, 20, 30, 40], pos = 1Output: [20, 30, 40]Input:...
read more
DSA
Arrays
Arrays
Delete an Element from the end of an array
Last Updated: 08 November 2024
Given an array of integers, the task is to delete an element from the end of the array.Examples:Input: arr[] = [10, 20, 30, 40]Output: [10, 20, 30]Input: arr[] = [20]Outpu...
read more
DSA
Arrays
Arrays
Delete an Element from the Beginning of an Array
Last Updated: 08 November 2024
Given an array of integers, the task is to delete an element from the beginning of the array.Examples:Input: arr[] = [10, 20, 30, 40]Output: [20, 30, 40]Input: arr[] = [20...
read more
DSA
Arrays
Arrays
Insert Element at a Given Position in an Array
Last Updated: 07 November 2024
Given an array of integers, the task is to insert an element at a given position in the array.Examples:Input: arr[] = [10, 20, 30, 40], pos = 2, ele = 50Output: [10, 50, 2...
read more
DSA
Arrays
Arrays
Insert Element at the End of an Array
Last Updated: 07 November 2024
Given an array of integers, the task is to insert an element at the end of the array.Examples:Input: arr[] = [10, 20, 30, 40], ele = 50Output: [10, 20, 30, 40, 50]Input: a...
read more
DSA
Arrays
Arrays
1
2
3
4
...
18
✕