3 ms·
I just concentrated on what would be the hardest part, the "edge" cases (literally.) Wrapping that in a loop that goes through the appropriate indices is not mu
by userbinator 1y ago
I just concentrated on what would be the hardest part, the "edge" cases (literally.) Wrapping that in a loop that goes through the appropriate indices is not much more work. There is a sibling dead comment to mine which has the rest.
- peterfirefly 1y agoShould probably use >=
- userbinator 1y agoYou're assuming closed instead of open intervals.
- peterfirefly 1y agoI was assuming zero-based arrays.