update template and problem longest-consecutive-sequence
update