力扣1642.可以到达的最远建筑 二分答案 class Solution {public:int furthestBuilding(vector<int>& heights, int bricks, int ladders) {auto check = [&](int mid) -> bool{vector<int> h;for(int i=1;i<=mid;i++){int t = h
1642. 可以到达的最远建筑 1642. Furthest Building You Can Reach class Solution {public:int furthestBuilding(vector<int>& heights, int bricks, int ladders) {priority_queue<int, vector<int>, greater<int> > PQ