News for hackers. Stuff that matters.
Re:Tell HN: OpenAI can solve Leetcode problems by b20000 on Friday December 02, 2022 @12:43PM (#33833851)
that doesn’t really matter. leetcode interviews are about producing the solution the interviewer expects.
Re:Tell HN: OpenAI can solve Leetcode problems by saxonww on Friday December 02, 2022 @01:02PM (#33834167)
Maybe I've just drunk the koolaid, but as someone who has given these 'coding challenge' interviews, I:

- Do go into them expecting to see a certain solution.

- Do not penalize people for giving me a different one, if it works. I think that's awesome, personally.

- Do ask people if they can think of additional test cases vs. those provided, and I penalize if there's obvious ones that they don't come up with, or if they just give me a bunch of variations of what we've already provided.

- Do consider whether people actually read and/or understood the prompt (I read it to them). If I've asked you to write a function that returns a boolean, and you write a function that prints 'true' and doesn't return anything, and after some gentle prodding you don't get it, then you didn't solve the problem.

- Do ask for you to talk through your solution and approach so I understand how you're thinking about the problem.

I need to know whether you can code, and more importantly that you understand why you're doing what you're doing. I can't ask your prior employer. Not everyone has open source contributions or a portfolio of work they can show me, and no, I am not going to just look at your resume and say "well, they worked for a software company before so clearly they know what they're doing."

I prefer take home exercises, where there's less manufactured pressure. I think they also lend themselves to a wider variety of challenge vs. the online 1 hour test using coderpad or something, meaning you may be able to ask something more appropriate for the role. But this approach upsets people as well.

Re:Tell HN: OpenAI can solve Leetcode problems by haswell on Friday December 02, 2022 @01:14PM (#33834367)
> I need to know whether you can code, and more importantly that you understand why you're doing what you're doing.

I haven't gone through the interview process since 2013, so I might be a bit behind here, but are these challenges still happening under pressure in a highly time constrained environment?

Because if they are, and if you interview me, you will probably not learn whether or not I can code, or if I know why I'm doing what I'm doing.

I know this is a subject that has been discussed to death, but all this tells you is whether the candidate is good at high pressure coding exercises.

I'm on sabbatical and half considering semi-retirement, but economic pressures are pushing me in the direction of seeking work. If there's one thing I do know, it's that I will pass on companies who insist on this kind of exercise.

Let me take it home, and that's a different story. I know that not everyone will be happy with every approach, but time and time again, I've found the high pressure exercises useless, and that includes when I'm interviewing candidates.

One dev team at my former company passed on me because I didn't do well in one of these high pressure exercises. A different team picked me up (they didn't believe in this type of exercise), and I spent over 8 years at the company and was known as a top performer.

Re:Tell HN: OpenAI can solve Leetcode problems by saxonww on Friday December 02, 2022 @01:53PM (#33835014)
I try to point out at the beginning that we understand it's manufactured pressure, and try to ease their minds if we can before getting started. In particular, we ask people to solve the problems in whatever language they are most comfortable with, and that it's an open book test; we're not testing you on whether you've memorized the Python standard library. This can certainly make things interesting! I've spent most of my career with perl, python, c#, and java, so the guy deciding to do his challenge in clojure was perhaps more of a challenge for me than it was for him.

I don't think there's a universal definition of 'high pressure,' so I am not sure what else to say about this. It's certainly not a fishbowl experience where you're surrounded by 20 people yelling and pleading for you to save their lives by writing a function to reverse a string in place. And while I've read that this happens elsewhere, we're not critiquing you on the spot and arguing with you about why using this technique causes the interpreter to do some less efficient thing and how could you be so stupid.

We try to coach and offer suggestions though, to help a candidate get to the right answer. That doesn't mean they necessarily passed - if we have to basically give you the answer, then you didn't solve the problem, and the coding interview is one of several inputs into a hiring decision - but I don't like to let candidates leave feeling like they failed if I can help it. I like to find at least one thing to praise about the solutions they turn in and tell them why I liked what they did. It is not the point of these interviews to ruin someone's day or make them feel worthless.

All that said, we can only do so much. Ultimately whether you feel an environment is high pressure is on you, and how you handle it is also on you. We would regret missing out on a good candidate but I'm sure it happens. There are other candidates, and other opportunities for those we've missed out on.

Re:Tell HN: OpenAI can solve Leetcode problems by haswell on Friday December 02, 2022 @02:30PM (#33835583)
> Ultimately whether you feel an environment is high pressure is on you, and how you handle it is also on you.

Obviously that is subjective, but this is on everyone involved, especially the company creating said environment. Twitter 2.0 is an obvious (if extreme) example.

The bottom line is that the whole approach is manufactured, and not indicative of real world problem solving skills or what the candidate will be dealing with on the team.

> We would regret missing out on a good candidate but I'm sure it happens.

It absolutely happens, and I’d bet good money that it happens often. Whether they realize it or not, most teams that take this approach end up creating an environment that is skewed towards a particular kind of personality, and that is ultimately a net negative in the long run.

Back to my personal anecdote (which I’ve observed over and over throughout my career), the teams that rely too heavily on this approach end up rather dysfunctional and unbalanced over time. The team that turned me down was disbanded after some horrific security issues came to the surface. They were so focused on whether candidates could solve certain algorithms that they apparently didn’t verify that these devs understood the fundamentals of client-side vs. server-side validation and why they’re important (and not the same thing). But those devs could bang out a chess algorithm on a whiteboard with the best of them.

I’m not saying that’s how you’re running things, but in my experience, teams that overemphasize this are doing so at the expense of far more important indicators. It takes a lot of discipline and care to not let this become a crutch.

I’m also not saying it isn’t important to verify that a candidate has the necessary skills, but having a conversation about person’s learning style, how they got into development, how they go about taking on new tasks, etc can go a long way. I care more about mindset and approach to information acquisition than I do about what a candidate can whip up in a hour.

Sitting down together and going over some existing code (after giving them enough time to absorb it) while having a discussion about the nuances of that code is far more collaborative, and in my experience far more likely to indicate whether or not the candidate knows what’s going on.

I’ve spoken to many like minded and high performing colleagues who will not consider companies that are overly focused on this.

Another colleague was recently offered a position after going through such a process, but bailed when they failed to follow up with enough meaningful conversation. Her conclusion: if that’s all they care about, I don’t trust that they’ve built a good team.

There’s a growing contingent of the types of people who you’d want the most, but will not consider your team for doing this.

Re:Tell HN: OpenAI can solve Leetcode problems by saxonww on Friday December 02, 2022 @03:17PM (#33836287)
> I’m not saying that’s how you’re running things

Good, because we're not.

The main takeaway here, which I think we agree on, is that a good hiring decision requires more than one input. We happen to use a coding challenge as one input in our decisions, but I agree that a collaborative discussion could work too. In particular, we do ask about background and learning style, among other things, in subsequent interviews.

Overall, if I had to attach a percentage to it, I'd say the coding challenge is no more than 25% of the overall decision, with the provision that if you clearly just don't know what you're doing at all - which has happened just a handful of times that I can remember - we're not going to invest more time in you as a candidate.

> There’s a growing contingent of the types of people who you’d want the most, but will not consider your team for doing this.

All I can say to this is that you're probably right, but also that almost no one is as uniquely qualified as they think they are. There are millions of candidates, and especially now that more software companies are OK with remote work, we can consider more of them than before. This is really good and really bad, the latter because employers are even more likely to :shrug: at this sort of thing and move to an equivalently-capable candidate who doesn't complain about having a one hour coding test.

Re:Tell HN: OpenAI can solve Leetcode problems by haswell on Friday December 02, 2022 @03:55PM (#33836769)
Yeah, I think we’re on the same page regarding the importance of multiple inputs.

> In particular, we do ask about background and learning style, among other things, in subsequent interviews.

In the past, I’ve done the opposite, and started with these questions up front. In my mind, they’re the most important thing to learn about a candidate, but I realize not everyone goes about this the same way. It does require more time investment up front though, and I get that.

> I'd say the coding challenge is no more than 25% of the overall decision, with the provision that if you clearly just don't know what you're doing at all - which has happened just a handful of times that I can remember - we're not going to invest more time…

If this is the case, wouldn’t that be evidence that this process should be de-emphasized even further, or at least moved to a later stage?

Correct me if I’m misreading this, but if almost everyone coming through has had some level of success with the coding stage, it’s not really screening many candidates out, but still could be changing the candidate’s view of your team and company. If it’s the first thing they encounter, it’s a big part of the first impression the candidate forms.

In a worst case scenario, you may drive someone good away with minimal benefit to the hiring process, and in a best case scenario, you’ve only saved a few conversations given the low failure rate.

> but also that almost no one is as uniquely qualified as they think they are.

I completely agree with you here, I just don’t believe an artificial coding test is the antidote to that. The more experience and confidence someone has (warranted or not), the less they feel they need to put themselves through pain for their next role.

Really not trying to be difficult here, but trying to understand the mindset and strategy behind this style of hiring, and I’m not quite seeing where the value is coming from based on what you’ve shared.

I will say that what you describe is one of the more reasonable stances I’ve come across, but still seems potentially counterproductive.

I do hear you regarding the access to millions of candidates. It’s a great problem to have, I just wonder if the old ways are still relevant.

Thanks for being willing to share your thought processes on this - it’s what I love about this site.

Re:Tell HN: OpenAI can solve Leetcode problems by quickthrower2 on Friday December 02, 2022 @06:27PM (#33838386)
High pressure to me, in this case, is because the stakes are high. And if not enough time is given that makes it pressure. The whole way I think in these circumstances is different to on the job. There is more shortcutting, looking for artificial tricks and so on. In the real job more deep thinking/strategic/ looking for real world murphys law type things that’ll bite you.

But interviewing, i.e. determining if you want 5k hours work from someone in less than 5 hours, is going to be heuristic and imperfect. Always.

Re:Tell HN: OpenAI can solve Leetcode problems by bobleeswagger on Friday December 02, 2022 @01:15PM (#33834381)
> I need to know whether you can code

On the flip-side, how much time do you spend explaining to an interviewee what hurdles they must overcome in order to code in the first place? Cultural blocks? Inefficiencies that don't have an owner or visibility to the greater org?

If your infra is well architected and any random engineer can start contributing within a week to a month, kudos.

In my experience, way too much energy is put into "can they do the job?" when the energy should be in "is this an environment where engineers can do their job?"

Re:Tell HN: OpenAI can solve Leetcode problems by saxonww on Friday December 02, 2022 @02:34PM (#33835641)
This is a good question. At least where I'm working, we have multiple conversations with a candidate throughout the interview process. When I have the opportunity, I do talk about technical or process challenges we have and try to be up front about aspects of a job that we know from experience can be a problem for some people.

For example, I'm on an internal tooling team, and so there's a support component where we have to be accessible and accountable to devs who encounter problems using tools we've created. We have a support rotation where one person a sprint is primarily tasked with being the first contact for people with questions, problems, etc. We've had people on the team before who didn't like this and it showed because they put little effort into it. So now we're very up front during the interviews that this is part of the job; we don't want to hire someone who will be unhappy in the role. It's what we think is the best we can do.

It's hard to answer about cultural blocks, because I haven't experienced those myself. I'm not sure how to even approach that; "hey, I see you're $different, here's some potential challenges you may need to deal with" ? That seems like it is as likely to offend as aid. That said, we do try to get a candidate in front of a variety of people, both to get a sense of how they deal with different people, and to give the candidate an opportunity to get feedback from people in different parts of the organization.

Re:Tell HN: OpenAI can solve Leetcode problems by whimsicalism on Friday December 02, 2022 @01:10PM (#33834306)
> But this approach upsets people as well.

Ultimately you have to realize that any process that is gating people from an opportunity & resources is going to upset people.

People have an amazing capacity to make up elaborate reasons and narratives for things to be unfair, especially when there is a group of them.

Re:Tell HN: OpenAI can solve Leetcode problems by b20000 on Friday December 02, 2022 @02:26PM (#33835522)
you forgot to mention that you don't care about their experience relevant for the position, other projects they completed succesfully on their own, code they have written themselves for these projects, and you also forget to mention that you expect them to provide the optimal solution in under 2 minutes, and if they don't, they are out.

you also seem to think that everyone is able to talk while they are coding, which is not the case.

Re:Tell HN: OpenAI can solve Leetcode problems by d0liver on Friday December 02, 2022 @01:12PM (#33834338)
If all they expect are passing test cases, then just use canned values in your code to make the tests pass. This is way more performant and even more efficient to write.
Re:Tell HN: OpenAI can solve Leetcode problems by teraflop on Friday December 02, 2022 @01:21PM (#33834484)
Part of the point of this style of challenge is that you're not given all of the test cases up front. And even if you are, you generally can't come up with those "canned values" without actually figuring out an algorithmic solution.

As I said, some of the test cases for this particular problem can be strings up to 100,000 characters long. Do you really think it's faster to solve those by hand than to come up with a correct algorithm to do it for you?

Re:Tell HN: OpenAI can solve Leetcode problems by autotune on Friday December 02, 2022 @12:51PM (#33833971)
Exactly. Would I use this for actual production code in any way right now? Probably not. In an interview setting where the interviewer thinks testing candidates through Leetcode is a good strategy? Maybe just to see if I could use it to make it to the next round.
Re:Tell HN: OpenAI can solve Leetcode problems by dogbox on Friday December 02, 2022 @12:47PM (#33833917)
What kind of interviewer expects a solution that's not only incorrect, but also woefully inefficient?
Re:Tell HN: OpenAI can solve Leetcode problems by actually_a_dog on Friday December 02, 2022 @12:55PM (#33834042)
Nobody expects that, obviously, but such solutions do occasionally get accepted (by humans). Beyond a certain basic level of competency, a lot of interviews, including LC-based ones, are about how good the candidate is at story telling and/or explaining their thought process.
Re:Tell HN: OpenAI can solve Leetcode problems by teraflop on Friday December 02, 2022 @12:48PM (#33833926)
So you're saying the interviewer expects a wrong solution, and the wrong solution they expect is the same wrong one the AI generates (which happens to be twice as long as the correct version), and the interviewer doesn't bother to run the tests?
Re:Tell HN: OpenAI can solve Leetcode problems by whimsicalism on Friday December 02, 2022 @01:02PM (#33834154)
Hacker News doesn't generally really make that much sense on topics adjacent to leetcode or discussing tech interviews, best to stay away.
Re:Tell HN: OpenAI can solve Leetcode problems by dogbox on Friday December 02, 2022 @01:12PM (#33834337)
This thread is making me feel like I'm taking crazy pills! Staying away is great advice.
Re:Tell HN: OpenAI can solve Leetcode problems by nine_zeros on Friday December 02, 2022 @12:54PM (#33834028)
> that doesn’t really matter. leetcode interviews are about producing the solution the interviewer expects.

This. In an interview, it doesn't matter. The interview process only selects for correct results, not for an individual's ability to solve problems.

Re:Tell HN: OpenAI can solve Leetcode problems by teraflop on Friday December 02, 2022 @01:02PM (#33834171)
But this is a demonstration that OpenAI doesn't produce correct results, which becomes obvious as soon as you hit the "Submit" button on Leetcode.