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.4K+ articles
DSA
22.8K+ 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
Searching
1.7K+ articles
DSA
/
Algorithms
/
Sorting
Sorting
1.8K+ posts
Recent Articles
Popular Articles
Commonly Asked Data Structure Interview Questions on Sorting
Last Updated: 21 May 2025
Sorting is a fundamental concept in computer science and data structures, often tested in technical interviews. Sorting algorithms are essential for organizing data in a s...
read more
Sorting
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
Meeting rooms - Find minimum meeting rooms
Last Updated: 26 March 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
Arrays
Hash
DSA
Interval
Meeting Rooms - Room with Maximum Meetings
Last Updated: 28 April 2025
Given an integernrepresenting the number of rooms numbered from0ton - 1 and a 2D integer arraymeetings[][]wheremeetings[i]=[starti, endi]indicates that a meeting is sch...
read more
Sorting
Heap
Arrays
Greedy Algorithms
min-heap
DSA
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
Partition Algorithms - Complete Tutorial
Last Updated: 11 November 2024
Partition algorithms are key techniques in computer science, widely used in sorting (like QuickSort) and selection problems. By dividing an array around a pivot, they allo...
read more
Arrays
Sorting
partition
DSA
QuickSell
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
Hoare's Partition Algorithm
Last Updated: 11 November 2024
Given an array arr[], the task is to partition the array by assuming first element as pivot element. The partition of an array must satisfy the following two conditions:El...
read more
Arrays
Sorting
Quick Sort
School Learning
DSA
Lomuto Partition Algorithm
Last Updated: 15 November 2024
Given an array arr[], the task is to partition the array by assuming last element as pivot element. The partition of an array must satisfy the following two conditions:Ele...
read more
Arrays
Sorting
Quick Sort
DSA
Naive Partition Algorithm
Last Updated: 07 November 2024
Given an array arr[], the task is to partition the array by assuming last element as pivot element. The partition of an array must satisfy the following two conditions:Ele...
read more
Arrays
Sorting
Quick Sort
DSA
Assign Cookies
Last Updated: 26 October 2024
Given two arrays, greed[] and cookie[] such that greed[i] denotes the minimum cookie size wanted by ith child and cookie[i] denotes the size of ith cookie, the task is to ...
read more
Greedy
Sorting
DSA
1
2
3
4
...
119
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 !