TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Avoiding Leetcode Anxiety

111 pointsby leetsquadabout 4 years ago

32 comments

jitlabout 4 years ago
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, don’t give up.<p>I interview candidates every day, and my impression is that a candidate from FAANG&#x2F;leetcode company is no better or worse than any other candidate.<p>Anywho, I’m hiring for a bunch of roles - full stack, Android, infra, SRE, early career, etc - if you’re interested in Notion (<a href="https:&#x2F;&#x2F;www.notion.so&#x2F;careers" rel="nofollow">https:&#x2F;&#x2F;www.notion.so&#x2F;careers</a>) ping me on Twitter @jitl.
评论 #26990584 未加载
评论 #26997818 未加载
评论 #26994641 未加载
评论 #26990651 未加载
评论 #26990292 未加载
legerdemainabout 4 years ago
You really need to decide in advance what you want to get out of LeetCode. It has a lot to give.<p>For example, some LeetCode questions are textbook problems. You really should familiarize yourself with them, but you will probably never see them verbatim on an interview. Other LeetCode questions are too tedious or time-consuming to do on a whiteboard in an hour. You will also not see them on an interview. For some people they can be fun brain-teasers, but if what you want from LeetCode is time-efficient prep material, you need to be able to tell apart these three kinds of questions.<p>If you look at comments on LeetCode questions, you will immediately discover that tons of people treat LeetCode as a pissing contest for its own sake. Should it matter that your solution runs in 18 milliseconds and theirs runs in 15? Or that they code-golfed theirs into 200 characters? Probably not. On the other hand, most canonical problems do have canonical solutions, and you should probably know what they are.<p>Knowing what to take from LeetCode and what to leave is almost its own discipline.
评论 #26994048 未加载
评论 #26993822 未加载
whymauriabout 4 years ago
It&#x27;s worth checking out the other links&#x2F;blogs on this site. I read a lot of complaining about Leetcode, most of which I think is valid. That said, something that&#x27;s not discussed often is its effect on interviewee&#x27;s mental health.<p>I used to admin a large Discord server for junior software job hunters. It&#x27;s pretty insane how many struggle from anxiety and stress directly caused by the interview formats popularized by Leetcode. The author here makes a pretty good point, honestly:<p>&gt;Leetcode is a competitive programming platform at its core, not an interview platform.<p>I think this is where a lot of the stress comes from. Like the author, I mostly avoided Leetcode and focused on fundamentals (literally reading CLRS and implementing foundational algorithms).
wnmurphyabout 4 years ago
I&#x27;ve recently been thinking about this a lot. The single highest-leverage action I&#x27;ve found for myself has been to shift my goal from:<p>A. (destination) I need to get a top-tier job at a FAANG company.<p>to<p>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.<p>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.<p>It&#x27;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&#x2F;contest numbers and then run a completely separate gauntlet of interviews after that.<p>If you want to be an Olympic athlete, you don&#x27;t start from &quot;I have to make these times, so that I can put myself in the highest pressure contest in the world.&quot; You start from &quot;Man, I just really love (running|swimming|etc.)&quot;
评论 #26996704 未加载
niruiabout 4 years ago
&gt; We don&#x27;t realize something important - Leetcode is a competitive programming platform at its core, not an interview platform. Yet, we fall into the trap of thinking it&#x27;s an educational website.<p>There is a word circling China&#x27;s Internet call &quot;内卷&quot;, which can be translated directly to Involution, but on the ground it actually means &quot;Over competition&quot; or &quot;Doing zero-sum competition&quot;. People trying to climb over the others while preventing others from climb over them, so they created many arbitrary obstacles to block others.<p>Keep in mind that, in Chinese society, 35 years old is equals to 70 years old (In many places, you cannot even get a gov job if you are over 35). Failing a competition can be really, life-changingly costly.<p>So, it is rather a &quot;standard practice&quot; for Chinese companies to keep throwing LeetCode questions to the interviewee during a job interview (, after all, many of those questions are marked by LeetCode as &quot;Interview Questions&quot;). This method creates a lot of benefits for the interviewer not only for the interview, but also for later negotiations.<p>Funny thing is, even though the top dogs in China got the best talented engineers in the entire nation, their public-facing products are still nothing but trash (or even fruaddy). And as for those engineers, many of them has their own big dreams, but they cannot realize it because the market is a highly restricted blood sea.
评论 #26990718 未加载
评论 #26990729 未加载
评论 #26989788 未加载
cebertabout 4 years ago
I wonder ten years from now how common LeetCode like interviews are. These types of interviews favor those who have the luxury of ample time to prep for difficult interviews and aren’t representative of most daily working environments. This process fails to consider candidates that would be good fits. When I help with interviews, I place much more values on communication skills, teamwork, mentorship, and a general passion for technology.
评论 #26990325 未加载
评论 #26990670 未加载
评论 #26994448 未加载
评论 #26994521 未加载
评论 #26994028 未加载
评论 #26990770 未加载
ipnonabout 4 years ago
After crashing and burning the startup rodeo, I gave up. I live off my savings, dabble in crypto for some income, and work on my own software to sell. I&#x27;ve never been happier. Silicon Valley didn&#x27;t seem to want me anyway.
评论 #26990716 未加载
评论 #26994523 未加载
ramtatatamabout 4 years ago
Back in my uni times I remember helping out a few of my friends from CS course by doing pair programming with them (I myself was taking mechanical course, I was not good enough with math and physics to get a place in CS course). They was asking me how do I do this, that I sit down and start solving their problem like I knew the solution despite the fact I have seen each problem for the first time. I used to tell them, that if they cut through enough of problems they will be the same.<p>From the perspective of time I think there was one thing that I had and most of my CS friends did not - programming was my hobby and I loved everything related with computers, they only wanted the end result which was good money and stable job.<p>Would I do 1500 leetcode problems? Maybe when I was younger and had no commitments, but certainly not now.<p>From perspective of years I see that leetcode is quite far from what I do on daily basis, and I do write quite a lot of code.<p>If I went to the job interview and was given a problem I have never faced before I would want the interviewer to see me finding the solution and not giving memorized (or practiced) answer. If result was not great and interviewer decided I&#x27;m not fit for the role that&#x27;s better outcome than to give false impression and then struggle (even if interview problem is nowhere close to what they do in daily basis).
Kaizerasabout 4 years ago
IMO getting better at Leetcode problems is similar to getting better at mathematics and physics - you become familiar on a topic by doing problems on a daily basis, trying to wrap your mind around the concepts and at times doing a bit of drilling just to stamp the things that need to be memorized.<p>Both require you to be disciplined and dedicate time on a daily basis, otherwise you won’t get further.<p>Having the time to address this is absolute luxury to me. Only when I became relatively rich (I‘m coming from a poor background) could I consider learning Leetcode problems. Before that point, I was learning whatever earns me survival money.
评论 #26994665 未加载
daralthusabout 4 years ago
When starting with Leetcode you face two questions:<p>1. Which ones should I do to be prepared?<p>2. For a given problem how do I find the knowledge that should have helped me recognise and solve it?<p>Imho, the Competitive Programmer’s Handbook [1] does answer these, every trick and pattern is explained in the most succinct way, in the order you would want to progress on leetcode to see all the basic problem formulations. Afaik every random interview question would fit into one of these.<p>Let me know if you know a better one.<p>[1] <a href="https:&#x2F;&#x2F;cses.fi&#x2F;book&#x2F;book.pdf" rel="nofollow">https:&#x2F;&#x2F;cses.fi&#x2F;book&#x2F;book.pdf</a>
dhannaabout 4 years ago
I honestly think leetcode is a pretty terrible way to learn how to do algorithm problems, especially without a formal education in algorithms. The large test case bank is the most useful feature. The discussion and solutions shared on the site tends to be lacking in breadth and depth.<p>I was happier to learn algorithms properly via the algorithms Coursera course taught by Sedgewick. The next time I need to go through the interview loop, I’ll probably start with Programming Interviews Exposed and supplement it with some other algorithm books as needed.
评论 #26994305 未加载
elseweatherabout 4 years ago
Ah, man, I get being anxious in interviews but it never occurred to me that newbies would be stressed out by their (lack of) Leetcode score. It&#x27;s totally unnecessary of course - the people who&#x27;ve racked 1500 problems are probably as unemployed as you are :p
hintymadabout 4 years ago
When everyone is a superhero, there will be no superhero. When everyone leetcodes, it is time to get back to fundamentals. So I agree with the author: grab a book, study fundamentals. Instead of memorizing 10 different dynamic programming problems, do study dynamic programming -- it&#x27;s fun and it is useful in production code anyway. Instead of bitching about finding a shortest path of whatever criteria on a tree, do study backtracking. Instead of agonizing over how to build a LRU or a token bucket, build a LRU and a rate limiter. Instead of pulling your hair on implementing a concurrent queue, study The Art of Multiprocessor Programming. The list goes on and the process is fun.
beforeolivesabout 4 years ago
I&#x27;m going through this now and it isn&#x27;t leetcode anxiety, it&#x27;s interview anxiety. If you haven&#x27;t had that many great opportunities in your career, getting a FAANG interview feels like your one shot. And yes, in your rational mind you understand that it&#x27;s just a job and you already have one so you aren&#x27;t desperate, there are many other companies too, and there will probably be other chances to interview at the same company... but the anxiety is still real.
评论 #26990902 未加载
collywabout 4 years ago
Alternatively just refuse to do leetcode &quot;challenges&quot;. As a software engineer leetcode is barely related to what i actually do in my job. Anyone who thinks it is a good way of evaluating candidates is a clown.
nomy99about 4 years ago
I started doing leetcode when the pandemic hit. I wanted to be ready in case I got fired and I have to do an interview... surprisingly I fell in love with it. I am one of those ppl that writes codes in their head, so I just look at a problem and go on with my day until I have a solution. Then I write it and test it out.<p>It&#x27;s enjoyable to me, and I have been forced to learn a lot of CS concepts I had forgotten and techniques I wasn&#x27;t aware of.<p>I don&#x27;t approach it with the drudge of performance, but just as something I do now. Like other things in my life, basketball practice, namely.<p>I am pretty sure eventually I&#x27;ll be in a position I can breeze through an interview if I really wanted to, but that&#x27;s not my goal anymore out of leetcode.
评论 #26994498 未加载
评论 #26994081 未加载
WWGaussDoabout 4 years ago
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.<p>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.<p>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 :)<p>tinyurl.com&#x2F;happyhackers
ilakshabout 4 years ago
Somewhat related: I have been recently looking for a new part-time project. In the past I have looked on freelancing sites for specifications, built demos, and usually within a certain number of days or weeks had a new client.<p>But those freelancing sites are horrible. So I decided to create an alternative. Just deployed it today. <a href="https:&#x2F;&#x2F;postaspec.com" rel="nofollow">https:&#x2F;&#x2F;postaspec.com</a>. Submitted as &quot;Show HN&quot;, apparently not noticed by anyone in any way. Would be awesome to at least receive one comment about it.
评论 #26989700 未加载
say_it_as_it_isabout 4 years ago
OP doesn&#x27;t seem to realize that leetcode questions are used verbatim by companies other than FAANG. Do you need to know how to solve leetcode questions? That depends whether you&#x27;re going through the front door or the back door. If you&#x27;re going through the front door, regardless of your experience level, you are going through the leetcode hazing process because that&#x27;s what your interviewers did and they have no intention of having spent hundreds of hours doing work without a purpose.
stylebender007about 4 years ago
You have given words to my lifelong struggle.<p>Honestly I have done great in every part of life except competitions.<p>During my school I always score good marks because there were only few books ,( to reach the bar ) , after that due to my issue with perfection, I have always put extra effort and I was successful . I had a very fulfilling schooling with great academic as well sporting results ( National Level Table tennis player) .<p>Then comes entrance exams . As a person who have always done well in tests , encountered a whole new world of competition. I started reading lot of books for the same subject , never satisfied , I had been a victim of maximum resources and minimum learning. Too be honest I never reached the bar to pass the entrance. Had I been focused on few resources I am sure the story would have been different.<p>I took engineering and again make the same mistake of maximization of resources and never reached the bar. Completed engineering , now comes the interviews , again made the same mistake. I had lost confidence in all my abilities and stopped applying for roles.<p>After few months I started freelancing and worked well with clients because there my maximum resources model worked. Now I have significant money to take 6 months off and really start from bottom at preparing interviews.<p>Hope it helps somebody.
hivacruzabout 4 years ago
That&#x27;s funny, I got anxiety not because I mainly could not solve algorithms problems (looking at you, graphs) but also because I could not beat my colleagues or friends who started to play too.<p>I used to play heavily on CodeSignal, a similar website. They used to post daily challenges back then. But there, it wasn&#x27;t about reaching the best time complexity or whatever: the number of characters was more important, like on Code Golf.<p>You first try to solve the problem and then you try to reduce your code to the minimum. The level of anxiety was starting to be really hard to handle and I&#x27;m happy I stopped playing this. Also, writing creative small codes won&#x27;t help you when developing real softwares that much since most of the times, small codes or one liners are terrible in terms of time complexity or memory.<p>I learned a few tricks and a lot of things about how some languages work through this practice and by looking at people solutions but I&#x27;m pretty sure it would have been better to read some algorithms courses instead.
Gunaxabout 4 years ago
Does anyone else just enjoy leetcode? I think it&#x27;s fun.
评论 #26995668 未加载
评论 #26995083 未加载
评论 #26994607 未加载
评论 #26996318 未加载
评论 #26994589 未加载
评论 #26996563 未加载
评论 #26994949 未加载
carabinerabout 4 years ago
&gt; Instead, pick a book or a course that teaches ~100 well represented problems. And don&#x27;t pick a book or course that has only problems. Pick something that teaches you to think about them.<p>The site doesn&#x27;t actually list any books or courses that do this. It just states that bouncing around is bad in <a href="https:&#x2F;&#x2F;leetcodetherapy.com&#x2F;interview-prep-today" rel="nofollow">https:&#x2F;&#x2F;leetcodetherapy.com&#x2F;interview-prep-today</a>, but it gives no specifics for the <i>right</i> way of doing it. Maybe the reason that guy is bouncing around is that there IS no resource that steps through &quot;100 well represented problems.&quot;
_greim_about 4 years ago
&gt; Leetcode and other websites have conditioned us to think that we need complication.<p>A paradox that&#x27;s plagued me my whole career is that simple abstractions are less approachable than complex ones. Simple abstractions almost by definition create bubbles of private language, making it hard to use existing knowledge to bootstrap into new knowledge. Complex abstractions don&#x27;t have this problem.<p>I don&#x27;t think Leetcode has conditioned anyone to think they need complication. I think beginners just find complexity more tractable, at least at first. Grappling with it feels like learning and doing. Leetcode rode that wave to where it is today.
dshiaabout 4 years ago
I agree that you only need to master 100, maybe 200, core questions then solving 1500 leetcode questions is only a time problem. However, most of candidates are not reaching or even closing to “master” level.<p>For example, given a question, can you <i>immediately</i> figure out the real problem you need to solve? What kind of algorithms and data structures look possible or useful for this question? Do you clearly understand the time complexity of each possible algorithm? Can you explain the solution quickly and clearly? What about other alternative solutions?
whycombagatorabout 4 years ago
&gt; Here&#x27;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.<p>Memoizing 300 questions isn’t easy
评论 #26990239 未加载
评论 #26994709 未加载
FL33TW00Dabout 4 years ago
The author says on the site to focus on a 1-2 resources. I have gone through CTCI but it seems lacking on explanation. Any other BOOKS (not online) that are superior?
goatcodeabout 4 years ago
More and more tech companies are beginning to hire for soft skills as a main emphasis, with basic technical skills as a given. They&#x27;re tending to intentionally NOT hire l337 folks, with a lot of emphasis on avoiding the &quot;brilliant jerk.&quot; So, if you are personally interested in the work, willing to learn, and aren&#x27;t a jerk, you&#x27;ll probably go further than someone who has traveling salesman memorized in 8 languages.
评论 #26994026 未加载
评论 #26994603 未加载
imwillofficialabout 4 years ago
What’s a good way to pickup CS skills in a well rounded manner outside of a CS degree? Moving from Sysadmin to DevOps rolls and need to learn this stuff.
评论 #26989346 未加载
评论 #26990579 未加载
评论 #26989720 未加载
评论 #26989367 未加载
评论 #26989389 未加载
评论 #26989366 未加载
评论 #26990018 未加载
throwaway123x2about 4 years ago
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?
评论 #26993984 未加载
travisjungrothabout 4 years ago
It was very similar ideas that led to me making algo-drills.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;travisjungroth&#x2F;algo-drills" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;travisjungroth&#x2F;algo-drills</a>
LordHumungousabout 4 years ago
Nobody does 1500 problems. 100-200 is most common.