(self, curr_int, new_int)
| 31 | return intervals |
| 32 | |
| 33 | def check_overlap(self, curr_int, new_int): |
| 34 | if curr_int.start <= new_int.start: |
| 35 | if curr_int.end > new_int.start: |
| 36 | return True |
| 37 | else: |
| 38 | if curr_int.start <= new_int.end: |
| 39 | return True |
| 40 | return False |
| 41 | |
| 42 | def merge_intervals(self, int1, int2): |
| 43 | temp_int = Interval() |