โ† LinkedIn questions

Maximum ticket earnings

Filed under LinkedIn

The question

Given n ticket windows with ai tickets, find the maximum money earned after selling m tickets, where the price equals the remaining tickets in the window.

No write-up yet. Related questions below have one.

Related LinkedIn questions

Collected from public candidate posts and coding forums. Updated Nov 2026.