Blog

Ceiling Division

Published 1 min read

x % m == 0 ? x / m : x / m + 1
can be replaced
with (x+m-1)/m

Comments

Leaving a comment stores your nickname (or GitHub profile info). Privacy policy

GitHub