One problem idea, as the ideate call gives it.
The task in 2 to 4 plain lines.
Plain lines, like 1 <= n <= 200000.
1 <= n <= 200000
The intended solution in 1 to 3 lines.
Like O(n log n).
O(n log n)
Why it is not a plain classic, one line.
One problem idea, as the ideate call gives it.