by shaftway · 6y ago · 0 comments
My favorite interviews were when we were trying to hire a senior level engineer, and we were only interviewing people with 10+ years of development experience. We'd ask people to build a priority queue. Items with a higher priority need to be handled before those with a lower priority, but otherwise items should be handled in order.
Can you guess what the most common methodology people chose was?
Did you guess an XML document?
These are people with degrees in comp sci, some claiming 15 years of experience as a developer, trying to get a role at a top 10 bank in New York City.
Of course technical interviews shouldn't be the only test used for hiring, but they absolutely should be included. Maybe it's demeaning that you have to jump through these hoops. Or maybe you're bad at them. Or they're "beneath you" in some sort of way. But don't blame the interviewer, blame the hundreds of other people trying to get a job that they aren't qualified for.
A: We need programming quizzes even for senior engineers, because many turn out of be incompetent.
B: How do you know they're incompetent?
A: They failed our programming quizzes!
The reality is that you're testing for stage fright, not programming skills. An audition is not a good criterion for choosing people who aren't stage performers.
I'm betting it was something like this though: https://www.chegg.com/homework-help/questions-and-answers/pr...
Assume good faith: let’s presume he knows some candidates get stage fright and has ways to help mitigate it. Or that despite stage fright, such tests are still a good signal (e.g. the signal is so strong the false negatives are a worthwhile cost, or stage fright might be highly correlated with poor performance, or stage performance could be highly correlated with talent!)
That's an interesting defense of an interview process that specifically does not assume good faith of the candidates.
> has ways to help mitigate it
I'm not sure this understands the nature of true stage fright. There aren't any good ways to mitigate it.
Re mitigation: already answered with previous “or” clause.
Exactly!
If someone has been implementing and delivering products for years/decades and they "fail" a whiteboard puzzle, which is more likely?
A: The whiteboard puzzle doesn't actually measure anything correlated to delivering products.
B: They can't actually develop anything, despite having repeatedly done so.
I want to hire the people who can develop and deliver products, not the whiteboard puzzle specialists because I've never been at a company where solving whiteboard puzzles is something we do as part of the business.
There may be a few small niches that attract good quality talent, but otherwise I don't know why anyone would opt to work as a technologist at a bank as opposed to say, a bonafide real tech company (all the banks are eager to say they are "tech companies" nowadays), or even a hedge fund.
> Did you guess an XML document?
If that is your most common experience with asking that question, maybe it is time you consider whether you are communicating what you want properly to your candidates.
But I don't know how much better I could have described what I wanted:
"I want a class for holding a queue of items in memory. The queue will only need to hold a few thousand items, and you don't need to worry about persisting it in case of a power failure or anything. The only wrinkle is that when an item is added to a queue it has a priority. Higher priority items need to come out of the queue before lower priority items, but items with the same priority should come out in the order they were inserted."
My naive contribution: A linked list with pointers to the tails of various priorities. The grabber just points to the head and pops things off the top as it goes.
I tried. It got tiring. Sometimes people would loop through all possible priorities plugging them into an XPath query and pop the first element of the highest priority that matched. Some would do two XPath queries, one across all nodes to get the max priority and a second to query the first element (ignoring the lack of a need to run the query a second time at all). Some would insist that XPath has some function that would let you select a node with an attribute that has the maximum numeric value.
I'd have been fine with your solution.
Every job gets applicants that aren't qualified. Only software engineering out of every single non-performance based (musicians, actors etc...) industry out there has white board interviews.
It was an unmitigated disaster. Constantly had to double check his work and redirect him from doing things bad ways (like using mutable objects with changing hash codes as dictionary keys kind of bad).
Eventually I quit the job (for other reasons). On the last day he cornered me in the elevator and offered me $100/hr to do his work for him under the table so that he could claim it was his.
> Did you ever verify that they actually had the experience they claimed?
Employer would only verify employment dates and eligibility for re-hire.
> Did you follow up with their references?
Yeah, but when you ask someone for references they're not likely to give you people who wouldn't speak well of them.
> Were they able to walk you through projects they worked, or discuss solutions implemented?
Yeah. I can walk you through projects that I was involved in as a junior as if I had been the lead because I paid attention during meetings.
How many bad experiences have you had with someone who did? I've had enough that I've lost count.
>like using mutable objects with changing hash codes as dictionary keys kind of bad
I don't think a leet code question would necessarily have screened stuff like that out at all.
>Yeah, but when you ask someone for references they're not likely to give you people who wouldn't speak well of them.
Did you actually talk with these references about what it was like to work with him?
>On the last day he cornered me in the elevator and offered me $100/hr to do his work for him under the table so that he could claim it was his.
That's $200k a year. I find it pretty hard to believe that he was serious.
It was a bad experience with someone who utterly failed a whiteboard.
> How many bad experiences have you had with someone who did? I've had enough that I've lost count.
> I don't think a leet code question would necessarily have screened stuff like that out at all.
I'm sure I have too, but I never advocated for only whiteboard interviewing. There should be a spread covering all sorts of aspects of their abilities.
> Did you actually talk with these references about what it was like to work with him?
Of course. I have a wide variety of coworkers with a wide variety of opinions of my skill-set. I'd select the ones that I think would resonate best with you. Barring that I have half a dozen friends that would tell you whatever I want them to. I fail to see how references are any sort of magic bullet.
> That's $200k a year. I find it pretty hard to believe that he was serious.
I was another senior engineer on the project, so I definitely could have covered the work. I had deeper experience, and given his quality I could have churned things out more quickly. I suspect he wasn't offering me $100 / hour at 40 hours per week. The job had a lot of paperwork and bureaucracy involved. I suspect if I was just doing the coding parts I could have covered it at about 10 hours per week, which is a lot more feasible.
Obviously I turned this down for ethical reasons.
I remember how to build one from a binary heap, but I wouldn't launch right into the code without reading a bit first.
If I was doing it today I'd use some sort of balanced tree using the priority to navigate the nodes. Each node would have pointers to the head and tail of a singly linked list. Insert when the priority isn't in the tree is a simple tree insert with head and tail pointing to a new single-element linked list, insert when the priority is in there is adding it to the tail of the right node and moving the tail pointer, removing is finding the right-most node, taking the head and advancing the head pointer by one element. If the list is now empty then delete the node.
But none of it matters. I don't care if someone would build it the way I would. I would never expect that. I don't even want an optimal or semi-optimal answer. I'd have accepted a singly linked list with O(n) insertion time and O(1) pop time. Or a plain list where new items are added to the end and a pop is an O(n) seek through the list.
What I care about is whether the developer come up with any solution, describe the tradeoffs that they are making, why they are making them, and what research they would do if any to find a better solution. If i could have this conversation that we're having right here, right now with them then they'd probably pass my hiring bar.