uacs2024

导航

2024年11月28日 #

leetcode 1450. 在既定时间做作业的学生人数 1094. 拼车

摘要: 1450. 在既定时间做作业的学生人数 法一:差分数组 class Solution { public: int busyStudent(vector<int>& startTime, vector<int>& endTime, int queryTime) { int nums[1001] = { 阅读全文

posted @ 2024-11-28 19:08 ᶜʸᵃⁿ 阅读(13) 评论(0) 推荐(0)

leetcode1109. 航班预订统计

摘要: 1109. 航班预订统计 这道题使用暴力解法,如果数据比较多,first 和 second跨度比较大时会超时。比如下面这个暴力解: class Solution { public: vector<int> corpFlightBookings(vector<vector<int>>& booking 阅读全文

posted @ 2024-11-28 17:52 ᶜʸᵃⁿ 阅读(21) 评论(0) 推荐(0)