Find Pattern in Infinite Stream I
Read a bit stream one next() call at a time and keep a sliding window of the last m bits; the first window equal to the pattern gives the start index.
Read a bit stream one next() call at a time and keep a sliding window of the last m bits; the first window equal to the pattern gives the start index.