TOUGH TONGUE AI
  • Home
    LogoTOUGH TONGUE AI

    RESOURCES

    Loading...

    HomeLibraryCoding Mock · Shortest Cell Path

    Coding Mock · Shortest Cell Path

    Coding Mock · Shortest Cell Path

    Overview

    A graph coding round with Nate. Find the fewest moves for a warehouse robot through a grid with shelves, run the tests, then handle a twist on your own code. Written report after.

    Your Instructions

    Your goal: model a grid as a graph, pick the walk for the fewest moves with a reason, 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

    • Saying the model first: cells are nodes, moves are edges
      • Breadth-first for the fewest moves, with the reason in one sentence
      • A visited record marked at the right moment
      • Naming the unreachable goal and the start-equals-goal case before Nate asks
      • Time and space in terms of the cell count

    Tips

    • Take Coding Coach · Shortest Cell Path 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 · Mirror the Message
    • Coding Coach · Linked Lists
    • Coding Mock · Recent Shelf
    • Coding Coach · Trees and Tries
    • Coding Mock · Price Just Below
    • Coding Coach · Graphs
    • Coding Coach · Heaps and Intervals
    • Coding Mock · Nearly Sorted Log
    • Coding Coach · Recursion and Backtracking
    • Coding Mock · Running Orders
    • Coding Coach · Dynamic Programming
    • Coding Mock · Edit Distance
    View the full course (40 sessions) →