Skip to content

Commit e6b79c7

Browse files
authored
Update video-stitching.cpp
1 parent d279fcc commit e6b79c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/video-stitching.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
class Solution {
55
public:
66
int videoStitching(vector<vector<int>>& clips, int T) {
7-
int result = 0;
8-
int curr_reachable = -1, reachable = 0;
7+
int result = 1;
8+
int curr_reachable = 0, reachable = 0;
99
sort(clips.begin(), clips.end());
1010
for (const auto& clip : clips) {
1111
int left = clip[0], right = clip[1];

0 commit comments

Comments
 (0)