Ah, nothing says "ready for the job market" like optimizing a drug dealing algorithm during a technical interview. LeetCode has officially jumped the shark with this one.
The problem is literally asking you to maximize profits from selling crack to junkies with different budgets. Someone in HR is definitely getting fired today.
The funniest part? It's actually just a standard greedy algorithm problem dressed up as a felony. Sort the junkies by willingness to pay, sell to the highest bidders first, and boom—you've optimized your criminal enterprise while demonstrating your CS fundamentals.
Ten years of experience just to become a virtual drug kingpin. Computer science degrees are really paying off these days.