Chocolate picking game
Filed under BankBazaar
The question
Given N chocolates in a row, if you pick index i, you get all chocolates at index j where j > i and type[j] < type[i]. Find the minimum number of chocolates to buy if the optimal index is chosen.
No write-up yet. Related questions below have one.
Related BankBazaar questions
Collected from public candidate posts and coding forums. Updated Nov 2026.