TOUGH TONGUE AI
  • Home
    LogoTOUGH TONGUE AI

    RESOURCES

    Loading...

    HomeLibraryPractical Mock · Find the Logic Bug

    Practical Mock · Find the Logic Bug

    Practical Mock · Find the Logic Bug

    Overview

    Find and fix a logic bug in a fee engine in a shared editor. Ask Theo for facts, pin the case that breaks, then add a regression test. Report after.

    Your Instructions

    Your goal: find the cause of a logic bug with evidence, fix it where it lives, and leave a test that would have caught it.

    How this works (about 30 minutes)

    • Theo gives you two support tickets and a small fee engine in the shared editor.
    • Nothing is in the tickets beyond the symptoms. Ask Theo for facts and examples; he gives one line at a time and puts examples on the notepad.
    • Pin the smallest case that breaks, find the cause, fix it, then write test_regression in the file. Run the public tests from the editor.
    • A production question about your fix.
    • No hints on purpose, a few if you are stuck. Your report comes after.

    What scores well

    • A reproduction that pins the exact boundary before any fix
    • Reading the spec sentence the code contradicts
    • Fixing the cause, not the fee on its way out
    • A regression test that fails without your fix, and an invariant you would check
    • Saying what to do about the money already charged

    Tips

    • Take Practical Coach · Hunt the Logic Bug first.
    • Say the hypothesis you are testing and what would rule it out.

    More in Practical Coding Interview Prep: AI Coach Edition

    • Practical Mock · Extend a Config Store
    • Practical Coach · Make It Fast
    • Practical Mock · Make a Slow Service Fast
    • Practical Coach · Debug a Production Error
    • Practical Mock · Debug a Production Error
    • Practical Coach · Hunt the Logic Bug
    • Practical Coach · Debug: Races and Leaks
    • Practical Mock · Debug a Race and a Leak
    • Practical Coach · The AI-Assisted Round
    • Practical Mock · Review the Agent's Code
    • Practical Mock · AI Lab Room
    • Practical Mock · Meta AI-Assisted Room
    View the full course (32 sessions) →