Mukundan Senthil
Mukundan Senthil
A remove method would be good as `s.pop(s.lower_bound(val))` is not so obvious
Specific testcase your code fails for is: ``` 2 1 2 ``` In this testcase your code queries the segment tree for `[1, 1)` which is an empty range, both...
We can probably update `SegmentTree` and `LazySegmentTree` to return `default` for empty ranges. cc: @cheran-senthil
Actually it seems I was a bit mistaken its seems that `SegmentTree` and `LazySegmentTree` do support empty ranges. Its that your codes queries outside the range of the array.
Yes, the solution you suggested does work, but as you mentioned, it is rather hacky. I can already see myself spending an hour debugging after `dotdrop compare` unexpectedly removes my...
Example usage: https://codeforces.com/contest/2027/submission/290258327 (lazy segment tree is overkill for this problem but demonstrates the usage)
Note that the image size reduction does not apply to the new `Dockerfile.multi` as it prunes packages in a separate step.
I'm not sure if a boolean is the best option here. Currently, my neovim plugins are located in `~/.config/nvim/pack/plugins/opt/*`, which falls within my `d_nvim` block that encompasses the entire `~/.config/nvim`...