Skip to content

Commit

Permalink
Update sum_of_intervals.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan committed Dec 8, 2024
1 parent 5f99616 commit fc29afe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kyu_4/sum_of_intervals/sum_of_intervals.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def sum_of_intervals(intervals: list) -> int:
:param intervals: list
:return: int
"""

intervals = remove_overlaps(intervals)
results: list = [(i[1] - i[0]) for i in intervals]
return sum(results)
Expand Down

0 comments on commit fc29afe

Please sign in to comment.