File tree 2 files changed +0
-50
lines changed
solution/1100-1199/1109.Corporate Flight Bookings
2 files changed +0
-50
lines changed Original file line number Diff line number Diff line change @@ -149,31 +149,6 @@ public:
149
149
};
150
150
```
151
151
152
- ### **JavaScript**
153
-
154
- ```js
155
- /**
156
- * @param {number[][]} bookings
157
- * @param {number} n
158
- * @return {number[]}
159
- */
160
- var corpFlightBookings = function(bookings, n) {
161
- let delta = new Array(n).fill(0);
162
- for (let book of bookings) {
163
- let [start, end, num] = book;
164
- start -= 1;
165
- delta[start] += num;
166
- if (end != n) {
167
- delta[end] -= num;
168
- }
169
- }
170
- for (let i = 1; i < n; i++) {
171
- delta[i] += delta[i - 1];
172
- }
173
- return delta;
174
- };
175
- ```
176
-
177
152
### **Go**
178
153
179
154
```go
Original file line number Diff line number Diff line change @@ -138,31 +138,6 @@ public:
138
138
};
139
139
```
140
140
141
- ### **JavaScript**
142
-
143
- ```js
144
- /**
145
- * @param {number[][]} bookings
146
- * @param {number} n
147
- * @return {number[]}
148
- */
149
- var corpFlightBookings = function(bookings, n) {
150
- let delta = new Array(n).fill(0);
151
- for (let book of bookings) {
152
- let [start, end, num] = book;
153
- start -= 1;
154
- delta[start] += num;
155
- if (end != n) {
156
- delta[end] -= num;
157
- }
158
- }
159
- for (let i = 1; i < n; i++) {
160
- delta[i] += delta[i - 1];
161
- }
162
- return delta;
163
- };
164
- ```
165
-
166
141
### **Go**
167
142
168
143
```go
You can’t perform that action at this time.
0 commit comments