“Countdown” numbers game: the lowdown

Fenwick trees: prefix sums in O(log N) time