TOUGH TONGUE AI
  • Home
    LogoTOUGH TONGUE AI

    RESOURCES

    Loading...

    HomeLibraryCoding Mock · Make It Fast

    Coding Mock · Make It Fast

    Coding Mock · Make It Fast

    Overview

    An optimise-it round with Nate. A correct but slow function sits in the editor; one test is too big for it. Say its cost, make it fast and prove the new cost. Written report after.

    Your Instructions

    Your goal: read working code, say exactly why it is slow, pick a faster idea for a reason, and explain the new time and memory.

    How this works (about 30 minutes)

    • The editor opens with a correct function. The small tests pass; the last test is big.
    • Say the complexity of the starter before you change it. Ask Nate about the input sizes.
    • Make it fast. Run the tests. Tell Nate when you want him to look at your code.
    • A follow-up changes how the data arrives. No hints unless you are stuck; each hint is counted.
    • Your written report comes after.

    What scores well

    • Naming the bottleneck and its cost before touching the code
    • Asking how big the input is and what the limits are
    • Choosing the faster idea with a reason, and saying what it costs in memory
    • Testing the edge cases: two numbers, ties, negative numbers
    • Staying calm when the data changes shape

    Tips

    • Take Coding Coach · Big O first.

    More in Coding Interview Prep: AI Coach Edition

    • Coding Diagnostic
    • Coding Coach · The Coding Round
    • Coding Mock · The Screen Round
    • Coding Coach · Big O
    • Coding Coach · Arrays and Two Pointers
    • Coding Mock · Rain Between Walls
    • Coding Coach · Sliding Window and Strings
    • Coding Mock · Five-Vowel Stretches
    • Coding Coach · Hash Tables
    • Coding Mock · Duplicate Files
    • Coding Coach · Binary Search and Sorting
    • Coding Mock · Number Finder
    View the full course (40 sessions) →