Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.5K+ articles
Misc
8.8K+ articles
Mathematical
7.8K+ articles
Arrays
6.5K+ articles
Competitive Programming
3.3K+ articles
Strings
3.3K+ articles
Greedy
2.1K+ articles
Algorithms
2.0K+ articles
Sorting
1.8K+ articles
Searching
1.7K+ articles
DSA
/
Data Structures
/
Arrays
Arrays
6.4K+ posts
Recent Articles
Popular Articles
4sum -Complete Tutorial
Last Updated: 07 March 2025
The 4Sum problem is an extension of the well-known 2-Sum and 3-Sum problems, where the goal is to find four numbers in an array that sum up to a given target. It’s a commo...
read more
Arrays
DSA
4Sum
Flipping Bits with K-Window
Last Updated: 02 March 2025
Given a binary array arr[] of size n, the task is to find minimum number of operations to convert all 0s to 1s. In one operation, we can select a subarray (window) of leng...
read more
Arrays
DSA
Commonly Asked Data Structure Interview Questions on Array
Last Updated: 19 May 2025
Arrays are one of the most fundamental data structures in computer science.It allows for efficient access to elements using an index, which is particularly useful for appl...
read more
Arrays
DSA
Traversal in Array
Last Updated: 19 February 2025
Traversal in an array refers to the process of accessing each element in the array sequentially, typically to perform a specific operation, such as searching, sorting, or ...
read more
Arrays
Traversal
DSA
Sorted Array to Wave Form
Last Updated: 11 February 2025
Given a sorted array of integers, the task is to sort the array into a wave array. An array arr[0..n-1] is sorted in wave form if:arr[0] = arr[1] = arr[2] = arr[3] = arr[4...
read more
Arrays
Sorting
DSA
Minimum Removals for Target Sum
Last Updated: 09 January 2025
Given an array of positive integers arr[] and an integer k, you can remove either the leftmost or rightmost element from the array in one operation. After each operation, ...
read more
Arrays
DSA
Sliding Window 23
3 Sum - Count Triplets With Given Sum In Sorted Array
Last Updated: 10 February 2025
Given a sorted arrayarr[]and a target value, the task is to find the count of triplets present in the given array having sum equal to the given target.More specifically, t...
read more
Arrays
two-pointer-algorithm
DSA
3Sum
Merge Sort Based Practice Problems
Last Updated: 15 November 2024
Problems Based on Merge of Merge SortMerge Two Sorted ArraysMerge Two Sorted Arrays with O(1) SpaceUnion of Two Sorted ArraysIntersection of Two Sorted ArraysMerge Two Sor...
read more
Arrays
Sorting
Merge Sort
array-merge
DSA
QuickSort Based Practice Problems
Last Updated: 15 November 2024
Problems based on Partitioning AlgorithmSorting an Array of Two Types.Stable Binary SortingStable Binary Sorting with O(1) SpaceThree Way Partitioning Around a RangeThree ...
read more
Arrays
Divide and Conquer
Sorting
Quick Sort
DSA
Longest Common Prefix using Sorting
Last Updated: 14 November 2024
Given an array of stringsarr[],the task is to return thelongest common prefixamong each and every strings present in the array. If there’s no prefix common in all the stri...
read more
Arrays
Strings
Sorting
Longest Common Prefix
DSA
Sort an array having 3 types of Values
Last Updated: 11 November 2024
We are given an array containing three different types of elements, and the task is to sort the array. This problem has been asked in various forms, and in this article, w...
read more
Arrays
Sorting
partition
DSA
Three way partitioning around an element
Last Updated: 10 December 2024
Given an array arr[] of integers and a value pivot, the task is to partition the array around the pivot such that array is divided in three parts.All elements smaller than...
read more
Arrays
Sorting
partition
DSA
Stable Binary Sort
Last Updated: 09 November 2024
Given an array arr[] of integers, the task is to partition the array based on even and odd elements. The partition has to be stable, meaning the relative ordering of all e...
read more
Arrays
Sorting
Quick Sort
partition
DSA
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
Arrays
Arrays
DSA
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
Arrays
Arrays
DSA
1
2
3
4
...
430
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !