Integer division rounding up instead of toward zero.
static int ceilDiv(int a, int b) => (a + b - 1) ~/ b;