I used the following code to check the empty input
if intervals==[]:
print("error")
return
But when do check it always get the error
RuntimeError: generator raised StopIteration, ?, ?
Fail: merge_intervals([])
Could you please let me know what I am wrong?
Thanks in advance.
Created at: 2019/08/16 08:07; Updated at: 2019/08/16 10:22