The first two rounds focused on coding, while the final round was system design. The coding questions included LeetCode 56, LeetCode 348, and a variant of LeetCode 124. The first coding round moved relatively quickly, while the tree problem in the second round required more time. I managed to complete all the coding questions and had an overall positive interview experience.
Interview Details
Round 1 — Coding: Merge Intervals and Design Tic-Tac-Toe
Question 1 — LeetCode 56: Merge Intervals
I was given an array of intervals, where each interval was represented by a start and end value. The task was to merge all overlapping intervals and return the resulting non-overlapping intervals. For example:
Input:
intervals = [[2, 5], [4, 8], [11, 14], [13, 17]]
Output:
[[2, 8], [11, 17]]
Explanation:
[2, 5] and [4, 8] overlap, so they merge
into [2, 8].
[11, 14] and [13, 17] overlap, so they
merge into [11, 17].
Input:
intervals = [[2, 5], [4, 8], [11, 14], [13, 17]]
Output:
[[2, 8], [11, 17]]
Explanation:
[2, 5] and [4, 8] overlap, so they merge
into [2, 8].
[11, 14] and [13, 17] overlap, so they
merge into [11, 17].
The problem required correctly identifying overlapping intervals and combining
Unlock Full Details
Create a free account to unlock this interview experience report.