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.