Implement Card Purchase With Gem Costs and Hand-Based Color Discounts
Asked at Brex · Coding Questions · Difficulty: Medium
Implement `canPurchase(player, card)`: return `true` if the player has enough gems to pay the card's cost, otherwise `false`.
Loading the problem…
More Brex interview questions
- Credit Card Service with Points Earning and Redemption System
- React UI: Multi-select Color Dropdown and Selected Properties Table
- Card Game Gem Affordability and Discount Calculation Functions
- Two-Team Turn-Based Battle Simulator
- Toy Language Type System
- Grid Infection and Immunity Simulation