Longest Consecutive Sequence & Tree Cliff Grid: Interview with a FAANG Engineer

Longest Consecutive Sequence & Tree Cliff Grid

Watch someone solve the longest consecutive sequence & tree cliff grid problem in an interview with a FAANG engineer and see the feedback their interviewer left them. Explore this problem and others in our library of interview replays.

Longest Consecutive Sequence / Tree Cliff Grid: C++ Interview with a FAANG Engineer - YouTube

Interview Summary

Problem type
Longest Consecutive Sequence & Tree Cliff Grid

Interview question
The first problem asks the candidate to find the length of the longest consecutive integer sequence in an unsorted array, solved optimally in O(n) time using a hash set. The second is a custom grid problem: given a 2D cliff modeled as a binary grid where trees are stable only if connected to the bottom row, determine the resulting grid after cutting a specified tree and letting all newly unstable trees fall.

Interview Feedback

Feedback about Hurricane Automaton (the interviewee)
Advance this person to the next round?
Yes

How were their technical skills?
4/4

How was their problem solving ability?
3/4

What about their communication ability?
3/4

1. Strengths

2. Room for Improvement

Pacing

Time Allocation

Syntax Under Pressure

Subarray vs. Consecutive Sequence

3. Open Notes

4. What To Do Differently Next Interview

Feedback about Stealthy Elephant (the interviewer)
Would you want to work with this person?
Yes

How excited would you be to work with them?
4/4

How good were the questions?
4/4

How helpful was your interviewer in guiding you to the solution(s)?
4/4