Re:Is the room open?
by akovaski on Monday February 10, 2020 @01:09PM
(#22291582)
The +1 makes the range inclusive rather than exclusive. This matches the summary, which is inclusive of floor(500/k). Ceil wouldn't correctly handle the case where the number of rooms equals a perfect square. That is,
does not return 484.
[ Parent
| on HN ]