As reported: Wells Fargo on-campus online assessment (India, November 2025): one hour, one SQL and two DSA questions (different candidates got different sets). DSA question 1: the taxi driver problem.
A taxi driver has n ride requests given as three arrays: ride i starts at pickup[i], ends at drop[i] and pays a tip tip[i]. The driver earns drop[i] − pickup[i] + tip[i] for ride i. The driver can carry one ride at a time: a ride j can follow ride i only if pickup[j] ≥ drop[i] (picking up exactly where and when the previous ride ends is allowed).
Choose a set of non-overlapping rides with the maximum total profit and return that profit.
This is LeetCode 2008 — Maximum Earnings From Taxi with the rides given as three arrays.
Example 1
pickup = [1,5,7], drop = [5,7,9], tip = [2,1,3] -> 14
Ride 0 earns 5 − 1 + 2 = 6, ride 1 earns 7 − 5 + 1 = 3, ride 2 earns 9 − 7 + 3 = 5. Each ride picks up where the previous one drops off, so all three chain: 6 + 3 + 5 = 14.
Example 2
pickup = [0,3,1], drop = [6,10,2], tip = [100,0,5] -> 106
Ride 0 earns 6 + 100 = 106 but overlaps both other rides. Rides 2 and 1 chain for 6 + 7 = 13. The best is ride 0 alone.
Constraints: 1 ≤ n ≤ 10^4; 0 ≤ pickup[i] < drop[i] ≤ 10^12; 0 ≤ tip[i] ≤ 10^5. The answer needs a 64-bit integer.
Code runner format: one JSON value per line: pickup, drop, tip. Implement taxiDriver(pickup, drop, tip); the harness prints the maximum profit.