Case: Find the Bug in an Intern's Budget Summary
Challenge summary
An intern's monthly budget summary looks off to a few users: work one example by hand, then find the bug and explain the smallest fix without running the code, as Capital One's case round asks.
What you'll practice
- Turn a business rule into a worked example before reading the code.
- Name a bug as a line, an input that triggers it and the wrong output.
- Keep money in whole cents and check limits and edge cases a quick read misses.
What Premium unlocks
Premium unlocks the intern's full code, every finding with its smallest fix, and the tests that check yours. It opens as a case: work an example by hand, mark the lines that are wrong and say why without running the code, then compare with a sample answer and fix it.
From the case brief
A few users say the numbers look off.
A summer intern wrote the monthly budget summary behind a household dashboard. Work one example by hand, then find the bug and explain the fix without running the code.
Free related practice
Public interview reports: Taro (July 2024) · Capital One frontend interview questions
Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.
Premium is $24 a month or $99 a year, less in many countries.