Problem 2513 · Medium

Minimize the Maximum of Two Arrays

Binary search the largest value and check with inclusion counts whether two disjoint sets of allowed integers can be filled.

Open the interactive visualisation