You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/fishercoder/solutions/_452.java
+27
Original file line number
Diff line number
Diff line change
@@ -54,4 +54,31 @@ public int findMinArrowShots(int[][] points) {
54
54
returnminArrows;
55
55
}
56
56
}
57
+
58
+
publicstaticclassSolution3 {
59
+
/**
60
+
* Another approach of mine: completely original.
61
+
* 1. Sort the points by start first, if tie, sort by end, both ascendingly.
62
+
* 2. While checking, we'll keep updating the ending to be the smaller one so that we don't possibly miss to burst a balloon. See test case 4 for this class.
0 commit comments