Qualcomm Interview Experience

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2024-06-07Added By Anonymous
Source: Link
Company: Qualcomm
Role: unknown
Interview Stage: unknown
Location: unknown
Year: unknown

This is a technical interview.
Given an array of random numbers, how can one find the length of the longest consecutive sequence?

Ex: 2,3,93,8,5,6,7,8,2,0,3,4
Ans: 4

Ex: 1,3,6,9
Ans: 3

All the approaches and discussion are highly appreciated and welcomed.
Happy coding.
Comments