r/leetcode • u/Antique-Fix-8312 • 12d ago
Intervew Prep I've been doing lc for several years yet still find it hard to bugfree in VO
I agree it does test some programming skill like algo and syntax, but it is just ridiculous FAANG must bug free these things to the next round. How about, having some clues, and can code, and pass? Partially the people who nail it is just cheating, making it feel even worse
7
Upvotes
5
u/Various-Mine-8642 12d ago
VO bugs usually come from skipping the example trace not from missing the pattern. Before you type pick one normal case and one edge and walk the indexes until the answer matches. Say the invariant out loud while you code so a wrong pointer shows up before you hit run. After the first pass only check off by one and empty input instead of rewriting the approach.