hello sir
please help me about the issue like pictures
{mentor edit: code removed}
Check out the While condition section. You must check if the new segment_time overlaps with one of the previous_segments.
IF you pass (segment_time) to the WHILE condition, it means the WHILE() will loop with ALL segment_time value
“while segment_time…” is incorrect. That should use is_overlapping().
Also I edited your post to remove your code - that’s not allowed by the Honor Code.
thank your suggestion!
thank you Sri , I solve it