cswork / AI-assisted roundAll projects

AI-ASSISTED CODING ROUND

Coding with an AI in the room

Some interview loops now hand you a small codebase and let you use an AI assistant. The code still has to be right: the round is about reading code, steering the tool and proving the result.

Start the first project

How such a round usually runs

  1. You get a repository of a few files with a short brief: a bug to fix, a feature to add, something slow to speed up, or legacy code to cover with tests.
  2. An AI assistant is allowed, often inside the editor. You decide what to ask it and what to keep.
  3. You run the tests yourself, add the ones that are missing and explain your changes as you go.
  4. Formats differ by company and team: the time, the tools allowed and whether hidden tests run afterwards. Ask your recruiter.

What interviewers tend to look for

Understanding the brief
Reading the existing code and the requirement before generating anything, and asking about what is unclear.
Checking AI output
Treating suggestions as a draft: reading them, spotting wrong assumptions and rejecting what does not fit.
Tests
Writing tests that pin the behaviour, including the edge cases the brief only implies, and running them often.
Trade-offs out loud
Saying why you chose an approach, what it costs and what you would do with more time.

Practice projects

Small Python projects with public tests and a hidden suite that shows only how many pass. The AI pair beside the editor may write code; it gets 15 questions a day.

Companies whose interview reports mention it

Matched by keywords such as "AI-assisted", "Copilot" or "可以用 AI" in the interview reports of the library. A match is a report mentioning it, not a confirmed format: read the report.

How to practise

  • Read the README and the tests before you open the AI pair. Write down what "done" means.
  • Ask for small, specific changes ("why does this test fail", "write a test for a duplicate order id"), not the whole solution.
  • Run the tests after every change you accept, and add a test before trusting a fix.
  • When the AI is wrong, say why: that is the part interviewers listen for.
  • Finish with "Finish and review" under the AI pair: it scores how you used the AI, the way an interviewer would.
  • Then do one project without the AI, against the clock.