GoldmanSachs | Analyst|CoderPad Round
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-05-13Added By Anonymous
Source: Link
Company: Goldman Sachs
Role: Analyst
Interview Stage: CoderPad Round
Location: unknown
Year: unknown
Original Post Content:
I was asked this question in the coderpad round:
Problem: Split overlapping intervals into non-overlapping intervals and return all parts with their labels.
Example:
Input : [a : {1,5}] [b : {3,4}]
Output : [a : {1,2}], [{a,b} : {3,4}] , [a : {5,5}]
Follow Up: The inputs are in form of stream (Online).