Skip to content

Commit ecf5c68

Browse files
format
1 parent 14cbc91 commit ecf5c68

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ Your ideas/fixes/algorithms are more than welcome!
338338
|255|[Verify Preorder Sequence in Binary Search Tree](https://leetcode.com/problems/verify-preorder-sequence-in-binary-search-tree/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_255.java) | O(n) | O(h) | Medium| Tree
339339
|254|[Factor Combinations](https://leetcode.com/problems/factor-combinations/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_254.java) | O(nlogn) | O(nlogn) | Medium| Backtracking
340340
|253|[Meeting Rooms II](https://leetcode.com/problems/meeting-rooms-ii/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_253.java) | O(nlogn) | O(h) | Medium| Heap
341-
|252|[Meeting Rooms](https://leetcode.com/problems/meeting-rooms/)|[Solution](../master/src/main/java/com/fishercoder/solutions/MeetingRooms.java) | O(nlogn) | O(1) | Easy
341+
|252|[Meeting Rooms](https://leetcode.com/problems/meeting-rooms/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_252.java) | O(nlogn) | O(1) | Easy
342342
|251|[Flatten 2D Vector](https://leetcode.com/problems/flatten-2d-vector/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_251.java)| O(1)|O(m*n) | Medium|
343343
|250|[Count Univalue Subtrees](https://leetcode.com/problems/count-univalue-subtrees/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_250.java)| O(n)|O(h) | Medium| DFS
344344
|249|[Group Shifted Strings](https://leetcode.com/problems/group-shifted-strings/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_249.java) | O(nlogn) | O(n) |

src/main/java/com/fishercoder/solutions/MeetingRooms.java renamed to src/main/java/com/fishercoder/solutions/_252.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
import java.util.Collections;
77
import java.util.Comparator;
88
import java.util.List;
9-
/**Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei), determine if a person could attend all meetings.
9+
/**Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei),
10+
* determine if a person could attend all meetings.
1011
1112
For example,
1213
Given [[0, 30],[5, 10],[15, 20]],
1314
return false.*/
14-
public class MeetingRooms {
15+
public class _252 {
1516
public boolean canAttendMeetings(Interval[] intervals) {
1617

1718
List<Interval> list = new ArrayList();

0 commit comments

Comments
 (0)