CF 1852B - Imbalanced Arrays

Rating: 1800
Tags: constructive algorithms, graphs, greedy, math, sortings, two pointers
Solve time: 2m 24s
Verified: no

Solution

Working