If you’re talking about a technical peer programming interview, there are four things that must be present for it to be effective. They are as follows:
1. Questioning: Before diving into your solution, always ask questions. Make no assumptions.
2. Thinking: Say what you’re thinking aloud. Explain why you choose a certain method. Provide persuasive justifications.
3. Education: Make an effort to educate. Even if you believe something is really simple and that everyone should already know it, you should still try to teach others. You want to be known as an expert in your area, or at the very least, in your solution.
4. Critical thinking: Put your critical thinking skills to the test. This may be accomplished by asking what are the unmentioned edge situations, seeing the problem from a fresh viewpoint, evaluating important data points, and so on.
As someone who has sat on the opposite side of the table for a number of job interviews, I’ve witnessed applicants struggle to communicate their thoughts during technical interviews owing to a lack of knowledge of the interviewers’ expectations, rather than technical ability.