Leetcode 452 Solution
This article provides solution to leetcode question 452 (minimum-number-of-arrows-to-burst-balloons)
Access this page by simply typing in "lcs 452" in your browser address bar if you have bunnylol configured.
Leetcode Question Link
class Solution: def findMinArrowShots(self, points: List[List[int]]) -> int: points.sort(key=lambda x: (x, x)) cnt = 1 curr_end = points for begin, end in points: if begin > curr_end: cnt += 1 curr_end = end return cnt