Divide and Conquer | LeetCode Problems

38 Divide and Conquer solutions to LeetCode solutions.

Divide and Conquer Problems View all solutions →

Median of Two Sorted Arrays

#4 Hard

Merge k Sorted Lists

#23 Hard

Maximum Subarray

#53 Easy

Construct Binary Tree from Preorder and Inorder Traversal

#105 Medium

Construct Binary Tree from Inorder and Postorder Traversal

#106 Medium

Convert Sorted Array to Binary Search Tree

#108 Easy

Convert Sorted List to Binary Search Tree

#109 Medium

Sort List

#148 Medium

Majority Element

#169 Easy

Reverse Bits

#190 Easy

Number of 1 Bits

#191 Easy

Kth Largest Element in an Array

#215 Medium

The Skyline Problem

#218 Hard

Search a 2D Matrix II

#240 Medium

Count of Smaller Numbers After Self

#315 Hard

Wiggle Sort II

#324 Medium

Count of Range Sum

#327 Hard

Top K Frequent Elements

#347 Medium

Super Pow

#372 Medium

Longest Substring with At Least K Repeating Characters

#395 Medium

Construct Quad Tree

#427 Medium

Reverse Pairs

#493 Hard

Logical OR of Two Binary Grids Represented as Quad-Trees

#558 Medium

Maximum Binary Tree

#654 Medium

Construct Binary Tree from Preorder and Postorder Traversal

#889 Medium

Sort an Array

#912 Medium

Maximum Sum Circular Subarray

#918 Medium

Beautiful Array

#932 Medium

K Closest Points to Origin

#973 Medium

Balance a Binary Search Tree

#1382 Medium

Number of Ways to Reorder Array to Get Same BST

#1569 Hard

Create Sorted Array through Instructions

#1649 Hard

Find Kth Largest XOR Coordinate Value

#1738 Medium

Longest Nice Substring

#1763 Easy

Find Array Given Subset Sums

#1982 Hard

Find the Kth Largest Integer in the Array

#1985 Medium

Count Good Triplets in an Array

#2179 Hard

Number of Pairs Satisfying Inequality

#2426 Hard