DDSA Solutions

Divide and Conquer

11 problems · 9 with full explanations

2 Easy6 Medium2 Hard
Divide and conquer splits a problem into independent sub-problems, solves each recursively, and combines the results. Classic examples: merge sort, quick sort, binary search, and closest pair of points. Master Theorem helps analyze time complexity: T(n) = aT(n/b) + f(n).

How to practice

To practice Divide and Conquer problems effectively, start with the Easy problems listed below, trace through each solution on paper, then re-implement without looking. When you can recognise the divide and conquer pattern within 30 seconds of reading a new problem, move on to Medium difficulty. Use the related topic pages and our study guide for a structured progression.

Open the full study guide →

Start here (Easy + explained)

All Divide and Conquer problems