How Do You Answer a Coding Question
Do State and Explain the Time and Space Complexity of Your Approaches. Don’t Jump Straight into Writing Code. You Should Only Start Coding After Your...
Do state and explain the time and space complexity of your approaches. Don’t jump straight into writing code. You should only start coding after your interviewer understand what you’re going to do and give you the green light. Don’t keep silent for too long.
What do you do if you can't answer a code interview question?
- Ask for Clarification. This is one of the first things you should do in your interview, regardless of whether or not you completely understand the problem. …
- Explain Your Thought Process. After you ask your clarifying question at the beginning, the next step is not coding — it is explaining. …
- Identify Pain Points. …
- TLDR.
How do you talk while coding?
Rule 1: Talk or Code In fact, if you want to talk while you write (if it helps), then go right ahead. But if you are not writing code, try to let the interviewer know what you’re thinking so you aren’t just staring at the whiteboard. It will give the interviewer an opportunity to guide you in the right direction.