x % m == 0 ? x / m : x / m + 1
can be replaced
with (x+m-1)/m
Ceiling Division
Published 1 min read
Comments
Leaving a comment stores your nickname (or GitHub profile info). Privacy policy
Published 1 min read
x % m == 0 ? x / m : x / m + 1
can be replaced
with (x+m-1)/m
Leaving a comment stores your nickname (or GitHub profile info). Privacy policy