← Deutsche Bank questions
CodingReported in a candidate post, Sep 2021

Calculate cost for extra distinct integers beyond capacity k

Filed under Deutsche Bank

Given a sequence of n numbers and a capacity k, you can remember only k distinct integers. For every additional distinct integer encountered beyond the first k, you must pay X. Calculate the total…

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.