摘要: 用最少数量的箭引爆气球 思路 如果当前数组的左区间没有覆盖前一个数组的右区间,就需要新的箭来击穿。不然就更新新的右区间。 class Solution { static bool cmd(const vector<int>&a,vector<int>&b){ if(a[0]==b[0]){ retu 阅读全文
posted @ 2025-12-07 19:24 FAfa_C++ 阅读(5) 评论(0) 推荐(0)