Coding Interview: An interview where you solve programming problems, often live on a shared editor or whiteboard, while explaining your approach to the interviewer.

Example

The interviewer asks you to find the first non-repeating character in a string. You clarify the input, explain a hash map approach, write the code while talking, then test it with "aabbc" and an empty string.

What Interviewers Look For

  • Do you understand the problem and ask clarifying questions?
  • Can you explain an approach before coding?
  • Is your code correct and reasonably clean?
  • Do you test it and handle edge cases?
  • How do you respond to hints?

Communication matters as much as the final code.

A Step-by-Step Approach

  1. Repeat the problem in your own words and ask about inputs and limits.
  2. Work through a small example by hand.
  3. Explain a simple solution first, even if slow.
  4. Improve it if needed, and say its time complexity.
  5. Code it, talking through what you write.
  6. Test with normal, edge, and tricky inputs.

How to Practise

Solve problems out loud, not silently, because the real interview is spoken. Practise with a friend or senior in a mock interview, and review common patterns such as two pointers, hashing, and recursion. If you get stuck in the real interview, say what you are thinking; silence is worse than a partial idea.

Related terms

Previous term: Coding Assessment  |  Next term: Collaboration

Related guides

Frequently asked questions

What is a coding interview?

An interview where you solve programming problems live while explaining your thinking to the interviewer.

What if I can't solve the problem in a coding interview?

Explain your thinking, try a simpler version, and use hints. Interviewers value your approach, not just the final answer.

Do I need to know DSA for coding interviews?

Basic data structures and algorithms help, especially for product companies. Service companies often ask simpler problems.

Should I talk while coding?

Yes. Explaining your approach helps the interviewer follow and help you.

Explore more internship terms

The IT Internship Glossary explains 199 terms you will hear before and during your internship, with simple definitions and real examples.

Browse all 199 terms
Dhaivat Ajwaliya

About the author

Dhaivat Ajwaliya

Dhaivat has 16+ years of experience in the IT industry, working on AI and cloud technologies, project delivery, and engineering leadership. He has interviewed and mentored many interns, wrote The Lost Intern, and runs the non-commercial Career Impact Initiative, mentoring students for free.