LeetCode.1109. 航班预订统计
LeetCode.1109. 航班预订统计
难度:medium
思路:
差分数组,注意细节
diff[0] = nums[0];
代码:
class Solution {
public int[] corpFlightBookings(int[][] bookings, int n) {
int[] nums = new int[n];
Difference difference = new Difference(nums);
..
原创
2022-05-24 14:10:05 ·
183 阅读 ·
0 评论