Divide and Conquer

Problems on divide and conquer, including splitting an array in halves and combining the answers, counting inversions with merge sort, closest pair of points, recursive patterns and fractals, and fast exponentiation.

The recursion and sorting articles in the Basics section cover the building blocks. Related problem sets are under Sorting and Dynamic programming optimization.

ამოცანები

Tanglegram#222

საშუალო (≈1350)

Sea Quadrille#723

რთული (≈1650)

Splitting into Two Groups#802

მარტივი (≈1000)

Cake Division#1511

ძალიან მარტივი (≈850)

Pre, in and post#1513

საშუალო (≈1350)

Gray codes#1519

მარტივი (≈1000)

Is it divisible?#1958

მარტივი (≈1000)

Trees Made to Order#2176

რთული (≈1650)

Divisors#2186

მარტივი (≈1000)

Symmetry#2588

ძალიან მარტივი (≈850)

Splitting into factors#2706

მარტივი (≈1000)

Bicolored Horses#3248

ძალიან რთული (≈2050)

Worst Locations#3325

ძალიან მარტივი (≈850)

Halloween treats#3840

ძალიან მარტივი (≈850)

Lunch for a Python#3911

მარტივი (≈1000)

Number of inversions#4261

მარტივი (≈1000)

Ancient Commemorative Monolith#4297

რთული (≈1650)

Irreducible Polynomials High#4561

ძალიან მარტივი (≈850)

Number of requests#4652

ძალიან რთული (≈2050)

Divide the apples - 1#4716

ძალიან მარტივი (≈850)

Is it divisible by 3, 6 and 9?#4734

ძალიან მარტივი (≈850)

n Div Tree#5067

მარტივი (≈1000)

Even more fun#5488

ძალიან რთული (≈2050)

Divide and Conquer#5671

მარტივი (≈1000)

1-25 / 66