Hacker News new | ask | show | jobs
by dekhn 1169 days ago
Let's see. The first time I was asked to implement quicksort, in code, on a whiteboard. It was not an algorithm I knew (I was a hacker, not a computer scientist) and I managed to figure out the algorithm on the fly but not the implementation with two pointers. I guess I didn't bomb since I actually progressed to the next phase.

Most recently, I was asked to implement os.path.normpath in plain python, getting it right, and then told I failed with no feedback. Later I realized the problem is in leetcode and I had answered everything right, so I'm still curious what I did wrong.

I don't understand why folks are asking leetcode questions straight off the website without even changing the test cases, or not providing a function signature, docstring, and some test cases.

Ultimately, I've learned you have to simply accept when an interviewer is an idiot and move on. Even if you've been blocked for moving forward on a role that you're perfect for. Now when I administer and interview I work extremely hard to allow the interviewee to demonstrate their positives.