There are n points positioned along a road, numbered from n. You are given the integer n and a rides, where rides[i] = [start_i, end_i, tip_i] indicates that the start_i to point end_i and will provide a tip of tip_i dollars.
If you choose to transport passenger end_i start_i tip_i) dollars. You can only carry at most
Return the maximum total earnings you can collect.
Constraints:
n
rides.length
rides[i].length
start_i end_i n
tip_i
There are n points positioned along a road, numbered from n. You are given the integer n and a rides, where rides[i] = [start_i, end_i, tip_i] indicates that the start_i to point end_i and will provide a tip of tip_i dollars.
If you choose to transport passenger end_i start_i tip_i) dollars. You can only carry at most
Return the maximum total earnings you can collect.
Constraints:
n
rides.length
rides[i].length
start_i end_i n
tip_i