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
- Repeat the problem in your own words and ask about inputs and limits.
- Work through a small example by hand.
- Explain a simple solution first, even if slow.
- Improve it if needed, and say its time complexity.
- Code it, talking through what you write.
- 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
- Coding Assessment: the automated, timed version.
- Technical Interview: the broader technical round.
- Problem Solving: the core skill being tested.
- Mock Interview: the best way to practise.
Previous term: Coding Assessment | Next term: Collaboration
Related guides
- Online Coding Tests for Internships
- Technical Interview Questions for Freshers
- IT Internship Interview Guide
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