up to, but not include, longest consecutive sequence