News for hackers. Stuff that matters.
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.