摘要:
class Solution { public: int maxSubArray(vector<int>& nums) { int n=nums.size(),res=-0x3f3f3f3f; for (int i = 0; i < n;)//枚举以i为起点的区间 { int j=i,sum=0; 阅读全文
posted @ 2023-04-19 16:50
穿过雾的阴霾
阅读(14)
评论(0)
推荐(0)
摘要:
class Solution { public: priority_queue<int> max_heap; priority_queue<int,vector<int>,greater<int>> min_heap; void insert(int num){ max_heap.push(num) 阅读全文
posted @ 2023-04-19 16:13
穿过雾的阴霾
阅读(17)
评论(0)
推荐(0)

浙公网安备 33010602011771号