Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What you do in leetcode is different from what you'd do in an actual interview though. In leetcode, I don't even bother with the trivial solution, as that would never pass the testcases. However, for an interview, I'd always start with the trivial brute force solution, at least to get out a base solution to evaluate, describe and then iterate on,


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: