Sorting Coding Problems for Interviews Last Updated : 18 Sep, 2025 Comments Improve Suggest changes Like Article Like Report Here is the collection of frequently asked coding questions on Sorting. Problems in this article are divided into three Levels so that readers can practice according to the difficulty level step by stepEasy Problems Maximum Perimeter TriangleMaximize sum after K negationsSum of minimum absolute differenceSort in waveformChocolate Distribution Problem Pair with the given differenceMedium ProblemsTriplet Sum (3sum) H IndexTriplet with closest sum K most occurring elementsMerge Overlapping IntervalsForm the Largest Number Sort array of 0s, 1s and 2sK’th Smallest/LargestInversion Count Minimum Platforms RequiredMaximum meetings in one roomCase-specific Sorting of Strings Sort by FrequencyMinimum Operations for DistinctMaximum intersections linesMaximum intervals overlappingMinimum Product sum of consecutive pairsPosition of an element after stable sortMerge Sort for Doubly Linked ListRadix SortSegregate 0s and 1s in an arraySort even and odd numbers Minimum product of k integersArray Permutation with Pair Sums ≥ K Hard Problems Merge sorted arrays with O(1) extra spaceCount smaller elements on Right sideSmallest Non-Representable Subset SumCount Subarrays with median at least XMerge K sorted linked lists Smallest Difference Triplet from Three arraysSort n numbers from 0 to n^2 – 1 in linear timeSort a 2D vector diagonallyPrint Binary Tree levels in sorted orderRelated Articles:Array Coding Problems for InterviewsString Coding Problems for InterviewsTree Coding Problems for InterviewsGraph Coding Problems for InterviewsDynamic Programming Coding Problems for InterviewsBinary Search Tree Coding Problems for InterviewsSearching Coding Problems for Interviews Comment More info T tarunsarawgi_gfg Follow Improve Article Tags : DSA Interview-Questions GFG Sheets DSA Sheet Explore DSA FundamentalsLogic Building Problems 2 min read Analysis of Algorithms 1 min read Data StructuresArray Data Structure 3 min read String in Data Structure 2 min read Hashing in Data Structure 2 min read Linked List Data Structure 2 min read Stack Data Structure 2 min read Queue Data Structure 2 min read Tree Data Structure 2 min read Graph Data Structure 3 min read Trie Data Structure 15+ min read AlgorithmsSearching Algorithms 2 min read Sorting Algorithms 3 min read Introduction to Recursion 14 min read Greedy Algorithms 3 min read Graph Algorithms 3 min read Dynamic Programming or DP 3 min read Bitwise Algorithms 4 min read AdvancedSegment Tree 2 min read Binary Indexed Tree or Fenwick Tree 15 min read Square Root (Sqrt) Decomposition Algorithm 15+ min read Binary Lifting 15+ min read Geometry 2 min read Interview PreparationInterview Corner 3 min read GfG160 3 min read Practice ProblemGeeksforGeeks Practice - Leading Online Coding Platform 6 min read Problem of The Day - Develop the Habit of Coding 5 min read Like