← Amazon questions

Maximum coins collected from bags after k turns

Filed under Amazon

Given an array of positive integers bags where bags[i] represents the number of gold coins in the i-th bag, and an integer k. In each turn, you select the bag with the maximum coins, collect…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

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