Narrating a coding problem out loud in English
Pergunta
Scenario: a live coding interview in English. You have a problem and a blank editor. What do you say out loud, in English, in the first two minutes — before writing code?
Resposta esperada
Narrate the approach so the interviewer can follow and correct you early. Roughly: (1) restate the problem in your own words and confirm — "So I need to return the longest substring with no repeated characters — is that right?"; (2) ask about edge cases and constraints — "Can the input be empty? How large can it get? ASCII or Unicode?"; (3) state the brute-force idea and its cost — "The naive way is to check every substring, that's O(n squared) — I think we can do better"; (4) name the pattern you'll use — "I'll use a sliding window with a set of seen characters"; (5) walk one small example verbally; (6) then code, narrating as you go and saying when you're unsure. Useful connectors: "Let me start with...", "One edge case I want to handle is...", "I'll come back and optimize this part."
Por que perguntam isso
Desafio de inglês falado sob pressão. Conecta com o desafio de system design em voz alta. O erro: codar em silêncio e só falar no fim.