How do you run a mock interview that gives you real signal rather than just practice?
You make the mock interview hard in the same ways that a real one is hard. A real interviewer does not tell you which pattern to use, and a real interviewer asks about the complexity and the edge cases.
questions = [
"two sum", "valid parentheses", "reverse linked list",
"merge intervals", "binary search", "course schedule",
]
# The interviewer gives you the question and nothing else.
# You say what you would ask to understand it, then you code.
for question in questions:
print("Question:", question)
print("Say your approach out loud first.")
print("Then code, then say the complexity.")
print("Then walk through an example.")
So what makes a mock give you real signal? Here are the rules.
the rule why it matters
-------------------------------- -------------------------------
use a timer you learn to think under time
no notes and no search you learn what you actually know
talk the whole way through the interviewer hears your thinking
ask questions back it shows how you work with people
ask about the complexity it is asked in every interview
write real code pseudocode hides real mistakes
And there is one thing that almost everybody gets wrong. The mock interview is not the part where you solve the problem. The part where you solve the problem is practice. The mock is where you practise the other half of the interview, which is talking, thinking out loud, and explaining.
And that means the mock is more useful if someone else watches it. A friend, a colleague, or even a recording of yourself with the sound on. The recording is the hardest one to sit through and the most useful, because you can hear the parts where you went quiet for a minute and worked it out in your head without saying anything.
And there is a detail worth knowing about. Real interviews have three parts. The first is the question, where you talk about the approach. The second is the coding, where you write the code. And the third is the questions from the interviewer, where they ask about the complexity and about how you would scale it. A mock that only covers the first two is missing a third of the interview.
So the rule to remember is this. Make the mock hard in the same ways that the real thing is hard, and practise all three parts.
The last question in this topic is about the review afterwards.