Skip to content

Commit 16debad

Browse files
refactor 435
1 parent 76f8bd8 commit 16debad

File tree

1 file changed

+0
-27
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-27
lines changed

src/main/java/com/fishercoder/solutions/_435.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,6 @@
55
import java.util.Arrays;
66
import java.util.Collections;
77

8-
/**
9-
* 435. Non-overlapping Intervals
10-
*
11-
* Given a collection of intervals,
12-
* find the minimum number of intervals you need to remove to make the rest of the
13-
* intervals non-overlapping.
14-
15-
Note:
16-
You may assume the interval's end point is always bigger than its start point.
17-
Intervals like [1,2] and [2,3] have borders "touching" but they don't overlap each other.
18-
19-
Example 1:
20-
Input: [ [1,2], [2,3], [3,4], [1,3] ]
21-
Output: 1
22-
Explanation: [1,3] can be removed and the rest of intervals are non-overlapping.
23-
24-
Example 2:
25-
Input: [ [1,2], [1,2], [1,2] ]
26-
Output: 2
27-
Explanation: You need to remove two [1,2] to make the rest of intervals non-overlapping.
28-
29-
Example 3:
30-
Input: [ [1,2], [2,3] ]
31-
Output: 0
32-
Explanation: You don't need to remove any of the intervals since they're already non-overlapping.
33-
*/
34-
358
public class _435 {
369

3710
public static class Solution1 {

0 commit comments

Comments
 (0)