Problem Description
Loading...
Problem Analysis
I’ve always felt this kind of problem doesn’t really count as Greedy
yet I keep seeing plenty of people filing it under Greedy
there should be an interval-greedy way to write it too
but I never came up with one, nor found one
the complexity here depends on the interval size
the greedy strategy depends on the size of n
so presumably there’s some room to choose
cpp
| |