Greedy

Mar
18
2024
0

Daily Question – 452. Minimum Number of Arrows to Burst Balloons

My initial approach is to merge the intervals in the points array by calculating their overlapping parts. Each merged interval requires one arrow. Therefore, by counting the number of merged intervals, I can determine the minimum number of arrows needed to burst all balloons.

Mar
10
2024
0

Weekly Contest – 388

This is the first time I have joined the Leetcode contest, the problems are not as difficult as I thought before, and quite straightforward. Maybe is just the rookie luck, I guess. I finished 2 of 4 and finished the third problem later.

Mar
04
2024
0
Feb
17
2024
0

Daily Question – 1642. Furthest Building You Can Reach

Greedy, use list.poll get the least number of integer list.