Loading page…
Three medium problems treat each bit position as its own small problem. The move is to keep a tiny state per bit inside one integer and update all positions together. The lecture covers a count modulo three, splitting a feed by a bit where two lone ids differ, the shared prefix of a range, and why a trick for pairs fails on triples.
Three medium problems sit on this street.