Re:Ask HN: Would you pass an interview for your current posi...
by lijogdfljk on Thursday January 06, 2022 @11:14AM
(#29825427)
Interesting. This is my weak spot as well. Any tips for going through this cycle? What do you use to learn them? To practice?
[ Parent
| on HN ]
Re:Ask HN: Would you pass an interview for your current posi...
by randmeerkat on Thursday January 06, 2022 @11:20AM
(#29825515)
I used to reread Grokking Algorithms: An Illustrated Guide for Programmers and Other Curious People by Aditya Bhargava and practice LeetCode.
At this point though I just stop the interview if they’re asking Big-O or data structure questions. If the company can’t come up with meaningful real world examples that actually explores my experience, I don’t want to work there.
Re:Ask HN: Would you pass an interview for your current posi...
by ctvo on Thursday January 06, 2022 @12:01PM
(#29826145)
I love using JavaScript for white boarding. It's very forgiving, it's not strongly typed, interviewers are all familiar with it, and large companies almost always allow it. Python is second. I avoid Go, Rust, Java, Scala, etc.. Too verbose.
I do the following in JS:
- General graph algorithms (shortest path, backtracking based)
- Traversals for graphs / trees (depth first, breadth first, iteratively, recursively)
- Heaps (min, max)
- Tries
- Matrix manipulation / traversal. This is a very error prone for a lot of folks even though it looks simple when they need to write it by hand, and I always need to putz around with 5-10 problems.
I have enough exposure to common interview questions that the above is generally enough.
Re:Ask HN: Would you pass an interview for your current posi...
by gime_tree_fiddy on Thursday January 06, 2022 @12:23PM
(#29826496)
Any focus on Dynamic Programming stuff? I myself prefer Python(as it very closely resembles pseudocode)
Re:Ask HN: Would you pass an interview for your current posi...
by thefunnyman on Friday January 07, 2022 @07:23PM
(#29847007)
I prefer python as well. It has some built in caching that makes DP problems trivial at times.