Skip to content

Commit 7013d30

Browse files
authored
Improved task 729.
1 parent 6a78076 commit 7013d30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/g0701_0800/s0729_my_calendar_i/MyCalendar.java

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
// #Medium #Design #Ordered_Set #Segment_Tree
66

7+
@SuppressWarnings("java:S1210")
78
public class MyCalendar {
89
static class Meeting implements Comparable<Meeting> {
910
public final int start;
@@ -14,6 +15,7 @@ public Meeting(int start, int end) {
1415
this.end = end;
1516
}
1617

18+
@Override
1719
public int compareTo(Meeting anotherMeeting) {
1820
return this.start - anotherMeeting.start;
1921
}

0 commit comments

Comments
 (0)