10 common technical interview mistakes and how to avoid them
Learn from others' failures. These are the most common mistakes candidates make in coding interviews and exactly how to avoid them.
Based on patterns we see across practice sessions, most candidates who fail have the skills and lose on avoidable mistakes. Here are the top 10 mistakes and how to avoid them.
Mistake #1. Starting to Code Immediately
Interviewers often see candidates jump in too fast. The interviewer presents a problem, and the candidate immediately starts typing code.
You often solve the wrong problem or miss a key constraint, and you lose the chance to show how you think. In the first few minutes, do these four things instead.
- Repeat the problem in your own words
- Ask clarifying questions
- Work through an example by hand
- Outline your approach before coding
Mistake #2. Staying Silent
Interviewers see long silences. The candidate thinks silently for minutes at a time, leaving the interviewer guessing.
The interviewer can't evaluate a process they can't hear, and may think you're stuck when you're actually making progress. Narrate as you work. Our technical interview tips show what to say and how to practice it.
Mistake #3. Ignoring Time Complexity
Sometimes the candidate submits a working solution without discussing or optimizing its efficiency.
A brute-force solution on its own isn't impressive, because interviewers want to see you find and build an efficient one. Make a habit of these three things.
- State the time and space complexity of your solution
- Ask if optimization is needed
- Know common optimizations (hash maps, binary search, two pointers)
# Don't stop here:
def contains_duplicate(nums): # O(n²)
for i in range(len(nums)):
for j in range(i + 1, len(nums)):
if nums[i] == nums[j]:
return True
return False
# Optimize to this:
def contains_duplicate(nums): # O(n)
return len(nums) != len(set(nums))Mistake #4. Poor Variable Names
You sometimes see code filled with single-letter variables like a, b, x, i, j.
Code like that is hard to follow, which invites bugs and makes it harder for the interviewer to judge. Prefer descriptive names, as in this sketch.
# Bad
def f(a, t):
d = {}
for i, x in enumerate(a):
c = t - x
if c in d:
return [d[c], i]
d[x] = i
# Good
def two_sum(nums, target):
index_map = {}
for i, num in enumerate(nums):
complement = target - num
if complement in index_map:
return [index_map[complement], i]
index_map[num] = iMistake #5. Not Testing Your Code
Sometimes the candidate says "I think that's it" without walking through the code.
Bugs you could easily have caught slip through. Walk through your code with a simple example instead.
- Trace the values of key variables
- Check boundary conditions
- Verify the output matches expected results
Mistake #6. Getting Defensive About Feedback
Sometimes, when the interviewer suggests a correction or alternative, the candidate pushes back or becomes defensive.
It suggests you're hard to work with, and collaboration is part of what is being judged. Acknowledge the point and work it into your solution. Our technical interview tips have phrasing that works.
Mistake #7. Freezing When Stuck
Sometimes the candidate hits a wall and sits in uncomfortable silence, unsure how to proceed.
It wastes interview time and makes the anxiety worse. Say where you're stuck, try a different angle, and then ask for a hint. The same guide walks through each step with phrasing.
Mistake #8. Over-Engineering the Solution
Sometimes the candidate builds an elaborate solution with unnecessary abstractions, design patterns, or optimization.
You spend time and add complexity when the interviewer only wants working code. Start simple: get a working solution first, then optimize if asked.
Mistake #9. Not Handling Edge Cases
Sometimes the code works for the happy path but fails on edge cases.
Before you call the code done, check the basic cases.
- Empty input
- Single element
- Duplicates, including an input where every value is the same
- Negative numbers
- Maximum and minimum values
- Very large inputs
- Null or undefined values
def find_max(nums):
# Don't forget edge cases!
if not nums:
return None # or raise an exception
max_val = nums[0]
for num in nums[1:]:
if num > max_val:
max_val = num
return max_valMistake #10. Poor Time Management
Sometimes the candidate spends 30 minutes on the first problem and rushes (or doesn't finish) the second.
An unfinished solution is hard to judge in your favor. Sketch a loose time plan before you start.
- Know typical time allocations (10 min understand, 20 min code, 10 min test and optimize for a 45-min interview)
- If stuck on optimization, get a working solution first
- Keep an eye on the clock
Summary Checklist
Before your next interview, review this checklist.
- [ ] Clarify the problem before coding
- [ ] Think out loud throughout
- [ ] Analyze time and space complexity
- [ ] Use descriptive variable names
- [ ] Test your code with examples
- [ ] Accept feedback gracefully
- [ ] Have a strategy for when you're stuck
- [ ] Start simple, optimize later
- [ ] Handle edge cases
- [ ] Manage your time wisely
Practice Makes Perfect
The best way to avoid these mistakes is deliberate practice. AlgoArena's battle mode simulates real interview pressure, helping you develop good habits under time constraints.
Every mistake you make in practice is one you won't make in your actual interview.
Start practicing today on Practice Problems or in Battle Mode.
Try it on a real problem
Write code, run it against the tests, and see what passes. No account needed.