TOUGH TONGUE AI
  • Home
    LogoTOUGH TONGUE AI

    RESOURCES

    Loading...

    HomeLibraryCoding Mock · Edit Distance

    Coding Mock · Edit Distance

    Coding Mock · Edit Distance

    Overview

    A dynamic programming coding round with Nate. Find the fewest edits between two words, run the tests, then handle a twist on your own code. Written report after.

    Your Instructions

    Your goal: spot the overlapping subproblems, name the state, the recurrence, the base case and the fill order, code it cleanly, and test the awkward inputs yourself.

    How this works (about 30 minutes)

    • Nate puts one question in the shared editor. Read it, ask what you need, then think out loud.
    • Say your approach and its cost before you code. Pick Python, Java or C++ in the editor.
    • Run the public tests, then tell Nate which input you think would break your code.
    • A follow-up that changes the problem, built from your own code.
    • No hints you did not ask for and no scores during the call. Your report comes after.

    What scores well

    • Naming the state in plain words before writing a table
      • The recurrence with all three edits and the case where the letters match
      • The base case: a word against nothing
      • A brute force named first, and the reason it repeats work
      • Time and space in terms of the two lengths, and the follow-up on memory

    Tips

    • Take Coding Coach · Edit Distance first.
    • Silence reads as stuck. Say what you are trying, even when it is a guess.

    More in Coding Interview Prep: AI Coach Edition

    • Coding Mock · Shortest Cell Path
    • Coding Coach · Heaps and Intervals
    • Coding Mock · Nearly Sorted Log
    • Coding Coach · Recursion and Backtracking
    • Coding Mock · Running Orders
    • Coding Coach · Dynamic Programming
    • Coding Coach · The Pattern Picker
    • Coding Mock · Same Meaning
    • Coding Mock · Google Room
    • Coding Mock · Meta Room
    • Coding Mock · Amazon Room
    • Coding Mock · AI Lab Room
    View the full course (40 sessions) →