- algorithm: move right pointer to right until satisfies condition, then move left pointer to right to tighten window until condition not satisfied.