Skip to content

Commit d358ec0

Browse files
authored
fix the comments error
1 parent 88836fb commit d358ec0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

algorithms/cpp/maximumNumberOfEventsThatCanBeAttended/MaximumNumberOfEventsThatCanBeAttended.II.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ class Solution {
153153
}
154154

155155
int maxValueDP(vector<vector<int>>& events, int k) {
156-
// for each event, find the next first event which
157-
// starting day is greater than its ending day
156+
// for each event, find the previous nearest event which
157+
// ending day is less than its starting day
158158

159159
for (int i = 0; i < events.size(); i++) {
160160
events[i].push_back( findPrevEvent(events, i, events[i][0]));

0 commit comments

Comments
 (0)