In one my coding rounds
i was asked merge intervals union question
i was able to give solution with TC O(n)
and SC - O(n)
took a longer time on this as i wanted to ensure good code quality
interviewer wanted to ask some follow up on this maybe he wanted SC to O(1) but i asked to move on to other question and come back to it later
i solved second (copy list with random pointer) one but during the dry run i missed a bug which interviewer pointed out and i fixed that quickly and i was out of time and couldnt discuss much
what are my chances from this round?
other coding round went really well
Comments (4)


