[hash] longest consecutive sequence