Pattern 22: LeetCode Interview Patterns24 sections · 736 units
Open in CourseQuiz: Identifying Sequence Starts
Test your understanding
Check Your Understanding
To find consecutive sequences in O(n) without sorting, what data structure should you use?
- A.Hash set
- B.Binary search tree
- C.Min heap
- D.Sorted array