[Tutor] overlapping tuples

David L Neil PyTutor at DancesWithMice.info
Fri Feb 28 19:37:13 EST 2020


On 29/02/20 9:34 AM, Narasimharao Nelluri wrote:
> Looks like misunderstood your question, even if independent over lap we
> should return all the over lap tuples in this case we should return all the
> tuples in a list.
> because here two sets of over laps, (0,2) overlaps with (1,3) and there is
> a overlap between (5,7) and (6,8).
> 
> tuple_overlap([(0, 2), (1, 3), (5, 7), (6, 8)])

+1

Well done! Will be interesting to read how you develop things from here...
-- 
Regards =dn


More information about the Tutor mailing list