Pick the highest-value packets from odd and even indices alternately within a budget.
Unlock detailed company stats for this questionUpgrade
Named 'buy and sell stocks 2' but unrelated to stocks: pick the highest-value packets from odd and even indices alternately within a fixed budget. Solved by sorting the array and picking greedily.
Format · On-campus OA.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
