there spherical balloon tape flat wall represent XYplane the balloon represent 2D integer array point pointsi xstart xend denote balloon horizontal diameter stretch xstart xend you know exact ycoordinate balloonsarrow shoot directly vertically positive ydirection different point xaxis a balloon xstart xend burst arrow shoot x xstart x xend there limit number arrow shoot a shot arrow keep travel infinitely burst balloon pathgiven array point return minimum number arrow shoot burst balloon Example 1input point 10162816712output 2explanation the balloon burst 2 arrow Shoot arrow x 6 burst balloon 28 16 Shoot arrow x 11 bursting balloon 1016 712example 2input point 12345678output 4explanation one arrow need shoot balloon total 4 arrowsexample 3input point 12233445output 2explanation the balloon burst 2 arrow Shoot arrow x 2 burst balloon 12 23 Shoot arrow x 4 burst balloon 34 45 Constraints1 pointslength 105pointsilength 2231 xstart xend 231 1