Light Mode
Dark Mode
Why I always get the error RuntimeError: generator

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: Aug. 16, 2019, 8:07 a.m.
Updated: Aug. 16, 2019, 10:22 a.m.
0
16
User avatar
Amy_Oliver