Card Game Gem Affordability and Discount Calculation Functions
Asked at Brex · Coding Questions · Difficulty: Medium
Steve has a card-based board game where players can exchange colored gems. Implement three functions: `can_afford`, `purchase_card`, and `compute_discount`.
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
- Implement Card Purchase With Gem Costs and Hand-Based Color Discounts
- Two-Team Turn-Based Battle Simulator
- Toy Language Type System
- Grid Infection and Immunity Simulation