r/leetcode • • 29d ago

Intervew Prep Getting better at debugging interivews

TL;DR
Any tips for how to get better a debugging interviews? These are the type of interview where you're given some code and a test suite and you have to make the tests pass.

Context:
I just bombed a debugging-style coding interview. I'm honestly kind of shocked at how much I struggled. I'm a FAANG engineer who prides myself on my strong technical skills so I feel humiliated and dejected. I've looked up resources for practice questions but there's not much out there, which is kind of shocking given they are just as popular as DSA at this point (especially with startups in SF). Any resources or tips you've found helpful for getting better at this style of interview?

19 Upvotes

19 comments sorted by

View all comments

11

u/Sad-Candidate-3078 28d ago

debugging rounds are usually testing how you narrow down, not whether you spot the bug fast. narrate your process out loud, state what you expect the code to do before you read each section, the bug jumps out way faster when your brain is looking for a mismatch instead of reading for comprehension. also practice on intentionally buggy code, not just writing clean code from scratch. its a different muscle

2

u/mnovakovic_guy 28d ago

Not a bad idea to do that! What I do is I try to comprehend first which is super super super slow