Day 11 - Sorting Algorithms - IPractice QuestionsOverview

Day 11 Practice Questions

Three problems that hit the patterns you’ll see most often in interviews — and that build directly on the Day 11 sorts.

The point of these isn’t to write yet another bubble sort. It’s to recognize when a problem is secretly a sorting problem in disguise. Once you see it, the answer is usually three lines plus a sort call.

Easy

ProblemPatternStatus
Sort ColorsDutch national flagAvailable
Merge Sorted ArrayMerge from the endAvailable

Hard

ProblemPatternStatus
Count InversionsModified merge sortAvailable

More Practice (Coming Soon)

ProblemPatternStatus
Sort an ArrayPick your sortComing Soon
Largest NumberCustom comparatorComing Soon
Meeting Rooms IISort + heapComing Soon
Reverse PairsModified merge sortComing Soon