Mathematics, Competitive Programming, Philosophy, Discrete Mathematics.
total complexity for repainting updates will still be log-linear or linear respectively. 2.2 The data structures We store the current state of the 1*n strip in a C++ (ordered) set. Each element of the set represents a maximal contiguous unicoloured simultaneously-painted segment. For each such