Visa·Software Engineer·Onsite - Coding / Algorithms
- Given a list of people where each person has up to two skills (skill 1 and skill 2) and an associated cost, return an array of minimum costs where the K-th element represents the minimum cost to select people such that at least K of them have both skills. Use -1 if it's not possible. Solve for all K from 1 to N.
“Felt defeated walking out.”