Google Interview Question

sorting an array of elements and combining by ids e.g [1:2], [1:3], [3,5],[2,4]

Interview Answer

Anonymous

Mar 12, 2022

solution to example [1:5],[2,4],[3,5]

2