InterviewDB Experience

Buying Chairs: Minimum Cost to Seat All Guests Given Chair Capacities

Interview Experience

Problem You are furnishing a venue. There are n types of chairs available; chair type i holds capacity[i] people and costs price[i] dollars. You need to seat exactly guests people. You can buy multiple chairs of the same type. You must seat every guest (no guest left standing). Return the minimum total cost to buy a set of chairs that seats at least guests people. Follow-ups What if you can only buy each chair type once (0/1 knapsack variant)? How does your solution change if you want to minimiz…

Full Details

🔒

Unlock all Confluent questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a candidate experience report from a confluent interview during the oa round.

It covers the following topics: Coding, Oa, Dynamic Programming .