Live data from Hacker News

Avoiding Leetcode Anxiety

leetcodetherapy.com

111–120 of 157 posts

Re: Avoiding Leetcode Anxiety

#111
post #24

Don’t want to do Leetcode? Me neither — after I left Airbnb I vowed to not work at any company that asks this kind of question. I interviewed at a bunch of interesting companies (Airtable, Brex, Eaze, Figma, Lob, Notion, ...) none of which asked this kind of algo brain teaser question. There are tons of places out there with great product, interesting problems, and good compensation - so if you hate this bullshit, do…

What do you do instead? It seems to me that having tough interview questions can allow a company to be less credentialist, because they know their questions are tough enough that anyone who solves them is qualified to work there. My resume doesn't necessarily make me look like a senior developer, but leetcode mediums are no trouble for me and with a little effort I think I could learn to solve hards quickly and relia…

I used to spend whole interview working on actual problems candidate will face on day-to-day. When hiring for back-end roles I had a few scripts I used to use to see how candidate does code review, or had an EC2 instance with specific problem simulated so candidate could look around and talk about what they see and how would they approach the problem at hand. I only gave algorithm problems to juniors who claimed they can code.

Re: Avoiding Leetcode Anxiety

#112
Great site. Spot on in terms of trying to tackle the problem of preparing in a more sane way, and countering the beliefs we have that we need to be able to do XYZ to get a job.

I think the reason that leetcode is so popular is because of so many software engineers underlying anxiety, sense of being unprepared, imposter syndrome. And when that’s already present, we look for solutions that flow into our emotional story. If I already believe I’m underprepared and that the goals I have are hard to achieve, I’m more likely to believe I need to solve 500 leetcode problems.

I help software engineers resolve your underlying interview anxiety and stress around things like interviewing and preparing. If this is you, come talk to us :)

tinyurl.com/happyhackers

Re: Avoiding Leetcode Anxiety

#113
I've recently been thinking about this a lot. The single highest-leverage action I've found for myself has been to shift my goal from:

A. (destination) I need to get a top-tier job at a FAANG company.

to

B. (process) I want to develop my ability to think structurally, so that I can enjoy spending time with code by honing an intuitive sense of the pattern language of code.

The former is future-oriented, stressful, feels overwhelming, triggers Imposter Syndrome and a sense of dread like crazy, etc. The latter is fun, joyful, centered in the present moment.

It's much more motivating and rewarding to get excited about developing a meta-skill than it is to try to hit your target total problem/contest numbers and then run a completely separate gauntlet of interviews after that.

If you want to be an Olympic athlete, you don't start from "I have to make these times, so that I can put myself in the highest pressure contest in the world." You start from "Man, I just really love (running|swimming|etc.)"

Re: Avoiding Leetcode Anxiety

#114
post #86

Does anyone else just enjoy leetcode? I think it's fun.

Only after shifting from a goal-oriented mindset to a process-oriented mindset; I now just love improving my intuitive structural thinking ability, and LC is for nothing more than that.

Re: Avoiding Leetcode Anxiety

#115

> Here's all you need - master 100 problems first, then slowly progress to maybe 200 more problems. Do it well, and you can crack several top companies. Memoizing 300 questions isn’t easy

This is actually the hard part for me. Like I guess I can memorize some questions but not 300. Also how long should I bang my head against the wall before looking up the solution? Should I just be looking up solutions instead of even trying to solve them if the goal is just memorization?

Mediocre actors stockpile material.

Good actors react from first principles.

Re: Avoiding Leetcode Anxiety

#116

Earlier quoted context omitted.

I do not think they are going away. They are a filter some like to use. I personally use a dead simple 'leetcode' style program because I want to see they have the basics and can communicate them. I have had to filter more than a few people just because of that. If you can not handle some simple if's and for loops you are in for some real trouble later on. Sometimes they will come in and bust on through it quickly. W…

Dude come on... 1. You seem to think that your interview version of basic concept of 'simple ifs and for loops' is the base tier of programming. It's not man, everyone has their blindspots and you are selecting for candidates who are most similar to you. 2. You display hubris in your skills test by assuming that people who can brag the most are somehow more qualified than those who are more humble. Protip, people who…

1. it is the base. If you can not do that you have more learning to do. I have seen many fail it. I am nice about it but they just need more training. Most of they type of code they will be writing is little more than enterprise glue code. It is not that complex but it takes a bit of logic skill and base coding skills to do. It can help me help them with what sort of training they need.

2. The interview is not about the code. I want to see them in action and see how personable they are (a grump/huckster will ruin a team). I usually have very little time with them so the test has to be simple (something someone who is semi competent can do in 10 mins). That they are studying outside shows they are at least willing to do the work (and a bonus and helps shortcut many things). Learning to do things is usually part of the job. I do not expect them to do it outside of work. But it shows passion if they do (which is not a bad thing but is sometimes needed to grind out more glue code). I am usually more interested in what they used to work on and can they describe what they did. I do not even really care what the thing is. I want them to explain it to me. Explaining what is going on is part of the job many times. As in 'hey so and so wants a powerpoint presentation of what you have been working on for the past 3 months'. Some are good at it many are terrible at it. I am not looking for slick presenters but people who understand what is going on and show that they can do it. Interviews are about time management too. So you have usually 40-70 mins to decide if someone is worth it. You have to divvy up that time into chunks. That is on the interviewer. I usually spend the first few mins just trying to calm the person down. Then the next few with a semi simple test and explanation. The rest of the time is them showing off and hopefully asking questions about the job (not all do). Them not interviewing me shows something too.

3. The whole class was voluntary. I could have snapped the whip and made them do it. But that was not the point of the class. It was to be a group thing where we learned from each other. It was up front that you can do this on the clock or off. It was up to them. It was very free form. I do not think it was too much to ask them to watch some training videos for a framework they were going to soon be using? My 'meaning' that I attached was many do not want to put in the work but still reap the reward. Honestly it kind of shocked me the numbers. It was not like a couple of people dropped out. It was 95% of them. All of the other people helping with these similar classes had the similar results. My 'bar' for them was to watch 1 video per week over 12 weeks (for 9 videos) and some (optional) simple code test. Is that hubris? I was not expecting much at all.

'Not many people really want to study at work' Well then that will be a problem for many. If both 'do not want to study outside of work' and 'do not want to study at work' are both true you will find your skills rusty and long term unable to do the job. I have watched it happen over and over. At some point the tech stack will change. You will need to learn it. I can honestly say I have not gone many days in my career learning something. Reading docs, reading tutorials, watching vids, classes, prototypes, whatever.

Re: Avoiding Leetcode Anxiety

#118

How do you pick representative problems on leetcode? He says to pick 100-150 and master them... how do you know which ones to master?

pick some from each pattern. Adjust more or less based on your comfort with each pattern eg: pick more sliding window pattern, dp, greedy vs pick less for binary tree/dfs problems.

This is where I’m stuck: how do we know which patterns are possibilities? I’ve never seen a “patterns for leet code” website, yet.

Further, how does a naive person know which pattern applies to a problem? Without that knowledge, how can I vet a learning resource and know I’m not wasting my time?

Re: Avoiding Leetcode Anxiety

#119
post #107

Earlier quoted context omitted.

This is so on the money. Leetcode/hackerrank are one form of practice, but they're not comprehensive. They're like a practice putting green or a driving range. Very useful practice, but they teach you how to swing the club not how to golf.

Except all that interviews test is the driving range part.

This hasn't really been true in my experience. It's one component, definitely, but in general people are also looking to get a sense of how you handle yourself and communicate when you're stuck on something. Most people will agree that the point of interviews isn't to get the right answer, but to show that you can reason about problems and communicate well.
Post reply on HN