When you really need visual programming but all you have is text
Yes I forgot how to check two intervals for intersection. But isn’t it fun to figure it out from the first principles?
@nikitonsky Isn't it as easy as finding intersection [max(l1, l2), min(r1, r2)] and checking that it's not empty?
Yes I forgot how to check two intervals for intersection. But isn’t it fun to figure it out from the first principles?