Editorial for Canada Day Contest 2021 - Half Heart
Submitting an official solution before solving the problem yourself is a bannable offence.
Loop through the blocks and holes after sorting them by the
Time complexity:
Richard: apparently turning the first dim segtree into a parallel binary search significantly improves runtime. I think it's because memory goes from
The other optimization is to initialize the event queues using sorted arrays. Not doing this seems to increase my code's runtime by about 50% or so: the segtree itself is actually quite fast (due to being memory efficient I guess).
Comments