There are n flights labeled from n.
You are given an array of flight bookings bookings, where bookings[i] = [first_i, last_i, seats_i] represents a booking for all flights from first_i to last_i inclusive, with seats_i seats reserved for each flight.
Return an array answer of length n, where answer[i] is the total number of seats reserved for flight
Constraints:
n
bookings.length
bookings[i].length
first_i last_i n
seats_i
There are n flights labeled from n.
You are given an array of flight bookings bookings, where bookings[i] = [first_i, last_i, seats_i] represents a booking for all flights from first_i to last_i inclusive, with seats_i seats reserved for each flight.
Return an array answer of length n, where answer[i] is the total number of seats reserved for flight
Constraints:
n
bookings.length
bookings[i].length
first_i last_i n
seats_i