outdated_belated, 1 year ago Nah, look at the implementation above: n <= 4 Means it’s inclusive. You’re probably referring to some other implementation that doesn’t involve such fine control, like Python where range(4) means [0 1 2 3]
Nah, look at the implementation above:
n <= 4
Means it’s inclusive.
You’re probably referring to some other implementation that doesn’t involve such fine control, like Python where range(4) means [0 1 2 3]
range(4)
[0 1 2 3]