Comment Comment by random_coder A neat trick indeed, using bitsets in a sliding window. Contest programming makes heavy use of some such tricks. parent random_coder 3 years ago