Readit News logoReadit News
Posted by u/ciwchris 3 years ago
Ask HN: Anyone ever consider bringing a coding exercise for the interviewers
Someone was asking how to determine the quality of coding practices at places they are interviewing. My mind went on a tangent wondering if it is fair for interviewees to bring a coding exercise for the interviewers to complete. I've heard that interviews are an opportunity for both sides to interview each other? So does the interviewee have an equal opportunity to determine how the interviewers work through problems by presenting their own exercise for the interviewers to complete, and therefore gain insight on the company's practices?

I've never heard of anyone doing this before and I don't think it would be well received. Has anyone done this? For anyone who conducts interviews what would you think if someone did this?

ryan-duve · 3 years ago
I did something like this on the interview for my current role! It's not exactly what you asked about, but I'll describe it in case you find it helpful.

The technical interviewer gave me an algorithm question that I fielded for an interview for another company. I said I've heard it before, and asked if there was a backup question we should switch to. The interviewer said we should go ahead and I basically just dropped the optimum answer and live coded it. I mentioned I would be rustier on the "harder version" of it that comes next, and found out he wasn't familiar with that particular twist. I asked if I could give it to him and we could work it out together, and he said yes. So we spent the rest of the half hour laughing with me sort of leading him through a more challenging form of the question and working it out together.

I don't think this would have been successful if I went into the interview with a random Leetcode question in my back pocket and awkwardly asked for someone to work through it for me. However, if it comes up naturally for you like it did for me, it can be a very fun and rewarding experience.

lolsoftware · 3 years ago
This sounds pretty much ideal. Two people [vaguely] familiar with a problem working through it together. Both have the opportunity to evaluate each other. This is exceedingly rare in practice. Obviously you got (and accepted) an offer.

Some of the best interviews I've given and taken have gone roughly this way. It's nearly impossible to set this up intentionally, though.

em-bee · 3 years ago
do pair programming on any coding problem. could be a live one from your actual work, or some FOSS project using a similar tech stack

Deleted Comment

VirusNewbie · 3 years ago
that is hilarious and awesome. Did you enjoy working with them, and did you think tackling a newer unseen problem with the interviewer as a peer showcased your skills well? I wondered if that would be a better experience (having the interviewer unfamiliar with the question as well, or something like that).
b20000 · 3 years ago
you should have asked him to build something you built in the past, which you needed several hours for, and ask him to do it in one minute. only then would you solve his question.
glouwbug · 3 years ago
Power move
PragmaticPulp · 3 years ago
This would be a waste of your time.

You have limited, precious time in the interview to learn about the company, their management practices, how they operate as a company, their growth history and plans, the composition of the company beyond the people you're interviewing with, and so on. Giving a single interviewer you're interfacing with a coding exercise would waste all of that valuable time.

A coding exercise would also be testing the wrong things. Often, the person running point on your interviews isn't a programmer in their day-to-day activities. At a tech company they likely have some technical background, but if someone has been a manager for 5 years and isn't coding day-to-day then what do you actually expect to get out of giving them a coding exercise?

As a hiring manager, if someone tried to give me a coding exercise I'd probably try to be a good sport and see if we could work it in 10-15 minutes, but I'd also be questioning the person's level of experience and maturity in the workplace. Hiring manager and IC developer are very different roles, and trying to give your hiring manager questions that don't explore their management style or how the company operates suggests that they don't really understand how the relationship is supposed to work.

sebazzz · 3 years ago
> Often, the person running point on your interviews isn't a programmer in their day-to-day activities. At a tech company they likely have some technical background, but if someone has been a manager for 5 years and isn't coding day-to-day then what do you actually expect to get out of giving them a coding exercise?

We always let a manager and a developer do the interview, and for good reasons because they both have a unique perspective on whether someone fits in the team.

tl_donson · 3 years ago
I’ve been this developer in a lot of interviews. We don’t typically do in-interview coding questions so it would be a little weird if someone just threw one at me — although I guess it would depend on the context of the question.

My style of interviewing is to have a as casual a conversation as possible with someone about their experience, ask them to do a deep dive into a solution they’ve delivered, what they could have optimised better, what they learned in the process (technical or otherwise), what were the pain points, etc etc.

I find the best applicants get me talking quite a bit about related projects we’ve worked on. It fits the flow of the interview, which is important. Asking me to whiteboard a random algorithm would be bizarrely out of place, but i’ve 100% whiteboarded hypothetical architectures while responding to questions from applicants. If we’re to that step then it’s usually a pretty good sign.

ironmagma · 3 years ago
They may be very different roles in practice, however IME the better managers (of coders) are also coders. You probably don’t want someone being your boss who can’t do your job if need be. It’s a skill necessary but not sufficient, as they might say in academia.
rapjr9 · 3 years ago
It is not a waste of time if you are also doing a code exercise, they can be doing one at the same time.
BeetleB · 3 years ago
Instead of coding interviews, I suggest asking behavioral questions. Why? Because you can easily ask them when they say "Do you have any questions for us?" No one will think it out of place.

The reason I ask them? To expose the fact that behavioral questions are being gamed by candidates. Not once has an interviewer given me a good response. If they expect candidates to have good responses, they'll get a lot of candidates who memorized scenarios that may never have occurred - and they cannot distinguish between the sincere and those gaming it.

To give you an idea: A former Amazon employee was coaching me for their behavioral interview. For those unfamiliar: You look up Amazon's 14 leadership principles, take each clause in their descriptions, and come up with scenarios demonstrating each clause. His advice on how to prepare for it? If nothing obvious in your work history demonstrates the behavior, make something impressive up and memorize it.

Of course, Amazon's behavioral interview is probably the easiest to game, as you essentially know most of the questions in advance. Probably over half of the ones I was asked were straight from their descriptions (e.g. "Give me an example of a time you disconfirmed a hypothesis.")

WalterBright · 3 years ago
> Give me an example of a time you disconfirmed a hypothesis.

So far, all of my hypotheses have been confirmed.

kelseyfrog · 3 years ago
If this is genuine, it's a good indicator that more information can be obtained by making more risky hypotheses. If a joke then woosh on me. :)

Deleted Comment

mandeepj · 3 years ago
> Of course, Amazon's behavioral interview is probably the easiest to game, as you essentially know most of the questions in advance

The devil is in the details. Once they will start probing, the candidates who had made up stories would start floundering.

BeetleB · 3 years ago
Easy to handle this:

1. Pick an example from work where a coworker exhibited the behavior and you're intimately aware of the details

2. Pick an example from work that didn't go the way Amazon would have wanted it, but fantasize about how it could have. I think those who've worked long enough have plenty of tales to tell that didn't quite happen that way in reality, but make for a better narrative. Just adopt one of those. Do you think most of the comments people post on HN with experiences from their workplace are 100% accurate? Do you think they needed to spend a lot of time crafting that narrative? No.[1]

Both of these don't even require much prep.

[1] Edit: Heh - see sibling comment - written while I was writing mine:

https://news.ycombinator.com/item?id=31983353

sp527 · 3 years ago
There's a magical escape hatch for this known as "I can't quite recall". The truth is most interviewers don't know how to properly evaluate the authenticity of a story and won't accord it much weight relative to the coding challenges anyway. You'll probably get through if you can pass the Leetcode portion and just bullshit well enough on the behavioral.
cyanydeez · 3 years ago
You know you're in a hacker forum, where people "make up" solutions to imaginary scenarios all the time.
angarg12 · 3 years ago
Yes, behavioral questions aren't perfect, but I do believe they still serve a purpose. Sure, candidates will embellish and make up stories. Still you are able to weed out candidates who are an obvious bad match, or identify potential gaps that might need to be addressed after a hire.
BeetleB · 3 years ago
My point isn't that behavior isn't an important factor - I think it's more important in predicting success than technical skills. The problem is this:

How many of your existing employees don't have these behavioral deficiencies that you're trying to root out? If you suddenly gave existing employees a behavioral interview, how will they fare?

AtlasBarfed · 3 years ago
Amazon's hiring practices are the biggest tell of a sociopathic organization that you should only work for if you have to.

If you are good enough to "raise the bar" at Amazon, then you should be good enough to get a better job somewhere else.

What Amazon hires for is insecure people desperate for the Amazon stamp of approval and willing to be exploited for insane work hours and discarded before their compensation vests. That's what their hiring process selects for, not actual talent.

Then the abuse REALLY starts when you get there.

jjtheblunt · 3 years ago
> What Amazon hires for is insecure people desperate...

They prey on that subset, but they hire for disposable warm bodies in general.

I worked for them for not quite a year, and quit, because it was so absurd how incompetent the many layers of management above were, who took home massive pay for emailing and deriding talented engineers they knew little about.

Disclaimer : I'd already saved more than enough to retire young, so didn't need to work there, just thought it interesting, am pretty sure was assigned to backfill a hire-to-fire departed warm body, and was quickly keenly aware of the scam almost ponzi scheme they run, having spent several years at Apple which was run excellently (where I was).

PaulHoule · 3 years ago
Conventional job interviews are bad from the viewpoint of the interviewees is that even though the function is to hire somebody, the process is fundamentally a rejection process. It is in everybody's interest to disrupt this process.

One of the greatest job interview hacks is this:

Imagine yourself as a consultant who is there to solve a problem for the business right there in the job interview and you can tell them that is your goal. Take advantage of "do you have any questions for us?" to probe deeply on a problem they have: sometimes you can get people talking for hours and get a lot of information.

This works best at small firms, say 20 employees, where you can talk to the principals. Big companies like Google have a structured hiring process precisely to defeat this and other interview hacks.

ntac · 3 years ago
I have.

A couple years ago, I had a phone interview with one of the big tech companies. The interviewer almost immediately started asking a series of pretty basic questions - something a new grad should be able to answer, where if you can answer one, you can answer them all. I don't have an issue with couple of questions like that to verify the info on my resume is accurate, but he was going on and on with them.

I told him I had a question for him and gave him the question. He giggled and said, "That's an interesting question", then started to ask me another question. I stopped him and asked him to answer my question. He said something along the lines of "this isn't for me to answer your questions".

I ended the interview. I don't think I would have liked working there.

snailcoder · 3 years ago
I haven’t done this but I had a fun experience grilling my interviewer on the relevance of the technical interview. My interviewer worked at a company specializing in virtualization technology. The interview was done remote, and this technical interview was the first step.

I was asked to program a mildly challenging problem, the very type of problem you’d see in cracking the coding interview.. mind you I hadn’t done any prep before because my personal stance was that a true technical interview will gauge what I know on the spot, and not what I’ve crammed or pretend to know.

Sooo, it went as you would imagine. I very slowly talked through the solution with my interviewer and while I was able to solve the problem, it took me all of about 30 minutes at which point the interviewer politely told me it wasn’t going to workout and was happy to give me constructive criticism.

His first feedback: Your problem solving is sound and you’re on the right track, you’re just way too slow. A good candidate solves this first problem in less than 10 minutes and also solves our second problem. You didn’t even get to the second one.

It was at this point I thought, “screw it, nothing else to lose so why not go for the brutal honesty approach.”

Me: how often do you solve a problem like this in your day-to-day?

Him: Oh never, this has nothing to do with the position we’re hiring for.

Me: So why is this part of the interview process?

Him: For the time being, there’s no other way to gauge programming talent in a short period of time.

It was at this point I was happy the interview went the way it did. This company would rather hire worker bees who cram technical challenges as opposed to someone who took the time to slowly think through a problem they hadn’t practiced.

Since then, I built a platform to hire junior and senior talent at my company which emulates a task a junior or senior developer may be given within their first few weeks. The challenge is simple although a bit time consuming. What’s amazing is that although we tailored the challenge for what we thought a good junior developer could handle, it actually has done an excellent job at weeding out senior developers who certainly were not senior by our standards and for the type of work we would expect a junior to be capable of.

Our challenge was to retrieve data on a regular interval from an intentionally buggy API, and visualize the data. Any language or tool was fair game.

Can you believe it? A challenge that actually asks people to do a task similar to what they’ll do on the job?

roguas · 3 years ago
I like your platform. I was making a special service for recruitment at intel. Your task was to talk to its api, but this api would return inconsistent results, sometimes fail etc.

Now this was for me a typical day, dealing with some intranet service/app. Generally your job is to retry, figure out which endpoints offer more valid/up-to-data data etc. A lot senior engineers would either be lost or would halt and respond that the service needs fixing before any work can happen (they were aware that this service is buggy and its your task to deliver best effort results).

pclmulqdq · 3 years ago
> The challenge is simple although a bit time consuming.

This is really the problem though. You can't ask an interviewee to do anything too time consuming if you want senior people, who often have kids or are otherwise busy.

snailcoder · 3 years ago
We ended up explaining the challenge and giving them access, plus up to two weeks to submit. (We’d always give more time if they asked).

They could do it whenever on their own time, and then we scheduled a 1 hour time block to review their code. Some people took an entire weekend, some people took an hour. Sure people are busy but at least this method also gives them the opportunity to see if they’d like to do the type of work we do, as well.

Overall ended up with really great hires who seemed to enjoy the challenge.

chipuni · 3 years ago
I interview a dozen people every month.

If a good candidate brought me a coding exercise, I would schedule a time to do it.

Why? Because I want them to know the quality of the people they're working with. I want to sell my company.

(I would not do this for a bad candidate.)

mistrial9 · 3 years ago
two real stories -- one is a successful but small company whose products I admired; I brought a demo that I wrote and showed it in the interview (yes this did actually happen long ago), I then asked the interviewer directly "how did I do this?" .. he was the engineering manager for all the coders, founder level and had an actual PhD in physics.. ten years older than me perhaps.. and, of course he did not know! he was a good sport about it. He was impressed! tricky graphics.. honestly I did get further but I wanted more money than they wanted to spend so it didnt happen. Second story is that I interviewed at Giant Company with a technical manager, who asked me a coding question about operating system code.. I had actually studied the OS source code for that particular part in the week before the interview. I then recited a lengthy and detailed description of the OS mechanism and afterwards, knowing I had hit the right points, I asked him -- how is it that you know about that, it is pretty obscure. He confidently leaned back, no drama, and replied "you mention that in your resume so I asked about it. I thought it would be a good question" .. he had no previous exposure to that topic and basically admitted it. (all before this hazing style become "standard").

ps- the first time I saw the hazing style interview was a group of technical project managers from Microsoft, on the campus of Apple, interviewing for a certain project. I suspect Google picked it up partly from Microsoft, who designed the method to control the interview and watch the response from the candidates. I asked "dont you want to see examples of my actual work?" and the frat-guy type said "no" flatly. also long ago...

I enjoyed reading the recent post here about interviews at Google where a introverted hardware guy was literally pursued by Google, and when he went for the interview, they started doing this "grad school algorithms" routine on him. Who here knows hardware? its not the same subject .. anyway, best to all

strich · 3 years ago
I'm not sure I understand the point you're making with your story - the technical manager wasn't 'hazing' you, they were simply trying to validate your cv against reality by making to talk to what's on there in detail. Are you suggesting what he did was a bad interview practice?
cjohnson318 · 3 years ago
> "you mention that in your resume so I asked about it. I thought it would be a good question"

Sounds pretty reasonable to me. I ask people about relevant experience they've listed on their resumes all the time.

kevinventullo · 3 years ago
Would you prefer to be asked questions unrelated to your CV?