← Deutsche Bank questions
CodingReported in a candidate post, Aug 2023

Minimum candles to buy from a stack to cover 1..K

Filed under Deutsche Bank

Mary has K cakes that need candles numbered 1 to K. A shop sells candles from a stack of uniquely numbered candles, one at a time, always the top one. Find the minimum number of candles she must buy…

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 Deutsche Bank questions

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