What is the goal of Longest Consecutive Sequence?
Practice this question from Longest Consecutive Sequence - Hash Set Pattern Practice Quiz, with options and an explanation.
Question
What is the goal of Longest Consecutive Sequence?
Option A — Correct answer
Find the longest consecutive integer run.
Option B
Reverse a linked list only
Option C
Compute tree height only
Option D
Sort characters alphabetically
Explanation
Find the longest consecutive integer run.