Skip to content

Commit d279fcc

Browse files
authored
Update video-stitching.py
1 parent 130c3a0 commit d279fcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/video-stitching.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def videoStitching(self, clips, T):
1313
clips.sort()
1414
for left, right in clips:
1515
if left > reachable:
16-
return -1
16+
break
1717
elif left > curr_reachable:
1818
curr_reachable = reachable
1919
result += 1

0 commit comments

Comments
 (0)