Card Game: Find Three Cards Summing to 15
Fix a failing test case for invalid move validation in a card game, then implement a strategy to repeatedly find sets of 3 cards that sum to 15 from a matrix of drawn cards. The solution should continue finding valid combinations until no more sets are possible.
Asked at:
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Mid December, 2025
Meta
Senior
- The prompt was difficult to reason about - The codebase was hard to follow - The models felt underdeveloped
Mid November, 2025
Meta
Manager
The problem was a game that draw cards from a deck. It draw N cards an print in a matrix form. You need to pick 3 cards where the sum of those cards are 15. So you had a failing test to fix, similar to the demo at meta website. The issue is in a validation for invalid moves. Then implement a strategy to solve the game, aka picking 3 cards summing 15 until no more cards available. You need to pick 3 cards from the grid presented to you, then shuffle, draw the matrix and do it again with the remaining cards. AI is available at any time, a small model, not too reliable.
Your account is free and you can post anonymously if you choose.