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

> but grinding leetcode will give you a better chance of passing the coding interview compared to studying CS theory

It may surprise you to know that any LeetCode question can be easily answered by those with a solid education and background in computer science. Ironically enough, because this mindset is popular within the industry, you end up with quite a few interviewers who lack the ability to understand any solution they have not memorized. It's always fun reading posts of someone failing an interview because they gave a more optimized solution, which was different from what the other guy in the room had, and couldn't be convinced he was wrong because he didn't understand how mathematical proofs worked.

Discrete math, basic linear algebra, and a few mathematical concepts in computing, generally cover all the possible questions you can get. What I like to do is quickly scroll through all the LeetCode/HackerRank questions, identify which ones I'm unable to quickly label with the type of math to be used, and then learn that math subject/topic. It takes me more time learning the math/theory, it takes me longer still trying to memorize every possible solution out there.

Spend on the history, end all the mystery. Or just keep trying to collect all the rocks in the world.



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

Search: