GoldmanSachs | Analyst|CoderPad Round
172
May 13, 2025
I was asked this question in coderpad round :
Problem: Split overlapping intervals into non-overlapping intervals and return all parts with there lables .
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).
Comments (2)


