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 @11:13AM (#29825395)
No, I couldn't pass. Anytime I swap jobs and want to work for medium or big tech cos. in the US, I need 1-2 months of prep to refresh my knowledge of implementing certain algorithms by hand. That knowledge disappears immediately after I accept the job offer.
Re:Ask HN: Would you pass an interview for your current posi... by josephorjoe on Thursday January 06, 2022 @12:50PM (#29826945)
I've seen the coding questions we ask candidates... whether or not i would pass would depend 100% on which question(s) I was asked.

Something relevant to the work I do all the time? yes, I'd probably pass.

Something about some data structure or algorithm I haven't needed to use in four years that i now have 30 minutes to implement in code? I'd likely fail.

When something comes up in my actual job where i need to solve a problem i'm not familiar with, i first do some research on the problem and learn/remember what i need to know about it and related algorithms/data structures before doing any actual coding.

i certainly do not "immediately write code as fast as possible" when presented w an unfamiliar problem.

if you must ask candidates to work on coding problems, i believe that you should give them 3 or more problems and let them pick which one to work on for the actual "coding test" part of it.

Then maybe have a conversation about the other problems to get a sense of how they would think about/approach them w/o actually making them write code.

Re:Ask HN: Would you pass an interview for your current posi... by actually_a_dog on Thursday January 06, 2022 @01:09PM (#29827315)
You nailed it, man. I don't do terribly well on Leetcode interviews, on average, but, for my last job, my interviewer told me some time after I got hired that I had done the best on that interview that she had ever seen. That's because it was a real world question as part of a structured interview process, as opposed to "let's just 4 engineers to throw random problems at the candidate."
Re:Ask HN: Would you pass an interview for your current posi... by blastonico on Thursday January 06, 2022 @11:23AM (#29825561)
LOL, same here. It seems that my knowledge was moved (not copied) from my brain to my tongue, then it vanishes away through the phone line.
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?
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.
Re:Ask HN: Would you pass an interview for your current posi... by lowbloodsugar on Thursday January 06, 2022 @12:29PM (#29826589)
Sounds like my physics degree.