labuladong日常刷题-差分数组 | LeetCode 1109航班预定统计 | 花式遍历 151反转字符串里的单词
差分数组–前缀和数组的升级LeetCode1109航班预定统计2024.1.1题目链接labuladong讲解[链接]classSolution{public:vectorcorpFlightBookings(vector>&bookings,intn){//构建航班人数数组,数组大小为n,初始化为0vectorpeople(n,0);//将人数传入差分类中构造差分数组Diffdiff(peopl