File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change 8
8
import java .util .Comparator ;
9
9
import java .util .List ;
10
10
11
- public class MeetingRooms {
11
+ public class jdalma {
12
12
13
13
public class Interval {
14
14
public int start , end ;
15
+
15
16
public Interval (int start , int end ) {
16
17
this .start = start ;
17
18
this .end = end ;
@@ -60,17 +61,19 @@ private boolean usingSort(List<Interval> intervals) {
60
61
@ Test
61
62
@ DisplayName ("입력받은 간격들의 충돌 여부를 반환한다." )
62
63
void name () {
63
- Assertions .assertThat (canAttendMeetings (new ArrayList <>() {{
64
- add (new Interval (0 ,30 ));
65
- add (new Interval (5 ,10 ));
66
- add (new Interval (15 ,20 ));
67
- }}
68
- )).isFalse ();
64
+ Assertions .assertThat (canAttendMeetings (new ArrayList <>() {
65
+ {
66
+ add (new Interval (0 , 30 ));
67
+ add (new Interval (5 , 10 ));
68
+ add (new Interval (15 , 20 ));
69
+ }
70
+ })).isFalse ();
69
71
70
- Assertions .assertThat (canAttendMeetings (new ArrayList <>() {{
71
- add (new Interval (5 , 8 ));
72
- add (new Interval (9 , 10 ));
73
- }}
74
- )).isTrue ();
72
+ Assertions .assertThat (canAttendMeetings (new ArrayList <>() {
73
+ {
74
+ add (new Interval (5 , 8 ));
75
+ add (new Interval (9 , 10 ));
76
+ }
77
+ })).isTrue ();
75
78
}
76
79
}
You can’t perform that action at this time.
0 commit comments