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.

A guide to learning algorithms through LeetCode

455 pointsby VitalyAnkhalmost 5 years ago

22 comments

digianarchistalmost 5 years ago
It&#x27;s becoming obvious to me that my time is better spent learning to solve these riddles rather than actually becoming a better developer. I have a job search coming up at the end of the year and whilst I&#x27;ve managed to largely avoid companies that ask this type of question, I believe it&#x27;s seriously constraining my career.<p>I can&#x27;t speak for everyone but the whiteboard interview has prevented me from leaving jobs earlier, moving jobs more frequently and left me avoiding certain companies altogether.
评论 #24181952 未加载
评论 #24181411 未加载
评论 #24180432 未加载
评论 #24180574 未加载
评论 #24180443 未加载
评论 #24184331 未加载
评论 #24184142 未加载
评论 #24180459 未加载
评论 #24180071 未加载
评论 #24183359 未加载
评论 #24180092 未加载
评论 #24181055 未加载
评论 #24185507 未加载
评论 #24201159 未加载
评论 #24195763 未加载
评论 #24183422 未加载
评论 #24179777 未加载
评论 #24180087 未加载
评论 #24180127 未加载
bradlysalmost 5 years ago
Gosh, I don’t enjoy that there is so much competition in this space. I can’t compete against people who essentially seem to have no life or other interests than getting job at Big N (or enjoy competitive programming).<p>It feels like this culture has ramped up in the last 5-10 years. When I started interviewing, the questions were easier. It feels like they’ve gotten more difficult - or at least the answer the interviewer wants is less attainable.<p>And I feel like I know why - go look at the leetcode discussion forums. There’s almost always some post at the top saying, “I did 1000 problems and won’t stop. I got accepted&#x2F;rejected and learned so much. Believe.” From the outside and inside, it looks like a cult. I feel like these folks are just making it worse for everyone.<p>Maybe I am just bitter because I’ve passed every mock interview I’ve done but I can’t get an offer from Big N still. Startups are the worst as a non-founder&#x2F;non-executive.
评论 #24180613 未加载
评论 #24180269 未加载
agentultraalmost 5 years ago
I find this little sub-industry building up around, “the coding interview,” to be highly strange.<p>Where are the papers that correlate this niche, specialized skill to general job performance and productivity?<p>I get that at certain problem domains the asymptotic complexity becomes a baseline for performance so I’m not against testing people’s knowledge where it’s appropriate. But is it really the dominating skill?<p>Reading some of the comments of people who went through the pipeline of this cottage industry, it sounds like it’s not even useful after you get hired. In fact optimizing for it to get through the interview sounds like a bad idea! Imagine landing the job and having no other skills.<p>I’m curious how these algo expert&#x2F;monster&#x2F;crushing the interview businesses survive and perpetuate this highly competitive environment.
评论 #24180848 未加载
评论 #24181601 未加载
pcestradaalmost 5 years ago
Can you imagine having to learn all this just to make a connection to a database, process some data, and then persist it somewhere?
评论 #24180756 未加载
评论 #24180094 未加载
OnionBlenderalmost 5 years ago
A good free algorithms book is <a href="http:&#x2F;&#x2F;algorithms.wtf" rel="nofollow">http:&#x2F;&#x2F;algorithms.wtf</a> (by Jeff Erickson)
评论 #24182099 未加载
doc_gunthropalmost 5 years ago
All the items are taken from Leetcode problems, but for the vast majority of them the author (labuladong) does not give attribution.<p>There should at least be a link to the related Leetcode problem for each section.
wisecoderalmost 5 years ago
16+ years of experience and won several awards and designed multiple highly scalable systems in retail. Still cannot get into faang. These coding interviews gate keeping me..
评论 #24197229 未加载
paulcarrotyalmost 5 years ago
Found in my bookmarks: <a href="https:&#x2F;&#x2F;leetfree.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;leetfree.com&#x2F;</a><p>Not sure if all quizzes are original, but some of them looks interesting.
评论 #24179572 未加载
评论 #24179640 未加载
tmpmovalmost 5 years ago
Thanks for the write up and git book.<p>Related question: I’m curious if any has game-ified algorithm learning, sort of like those old educational math games targeting certain grade levels.<p>Might be cool to make a point and click adventure centered around dynamic programming or greedy algorithms.
评论 #24180301 未加载
crohalmost 5 years ago
I am a self taught programmer (python). I learned things because they required to solve some problem. You face problem and then you find solution. I used to solve puzzles in childhood for competative exams. But now as adult, it is very difficult to connect with imaginary problems which you never deal in day to day life. It makes me feel empty - learning something to just get a job. Recently I picked up interest in OS because I started to notice my limit with application programming. I learn to write comments and importance of git, after working in startup where you keep wearning thousdands of hats daily and forgot what code last week. And I feel this is very organic approach to learn.<p>Being on both sides of table, whenever I conduct interview I just ask simple programs to do (mostly fizbuz) and try to gauge candidate passion by understanding projects s&#x2F;he worked and problems faced. If candidate passes fizbuz, I believe s&#x2F;he has basic understanding of logic. Other things can be thought easily if candidate has passion.<p>I have friends in university who only talks about algos but can&#x27;t write single line of code (I am not blaming them, it is just their field doesn&#x27;t require intense coding. What i am trying to say here is, writing good code is like craft. You need to write actual code to excel in craft. Solving leetcode problem successfully doesn&#x27;t imply you can write good code automatically). Last time when I switched jobs, I studied couple of algos and now I forgot them. I am again switching and thinking to start with leetcode. The biggest problem in industry is hype. These days even small stupid IT shops are asking for hackerrank test with full stack developer. Lot of focus is still on memorization and hype.
bobblywobblesalmost 5 years ago
Thank you for your guide. I do apologize in advance, but this tutorial, like others, simply goes into the _what_ to do and doesn&#x27;t explain the _why_.<p>Forever math will be about memorizing these &quot;tricks&quot; and not understanding it intuitively - can someone please help offer some suggestions to me?
didipalmost 5 years ago
Is there a list of companies that purposely not use Leetcode in their hiring? Someone should make one.
评论 #24182339 未加载
throw1234651234almost 5 years ago
What language should you grind leetcode in for FAANG? Or does it honestly not matter. Like C# or Javascript, for example?
meow_mixalmost 5 years ago
&quot;fucking algorithms&quot; such a good repo name tbh.
nickx720almost 5 years ago
This is really sweet. Thank you kind sir.
TACIXATalmost 5 years ago
This is really cool. What order are the chapters in? Seems intense to lead with dynamic programming.
评论 #24179744 未加载
bohemian99almost 5 years ago
I haven&#x27;t seen gitbook before, is this a common tool for documentation?
评论 #24180033 未加载
Unklejoealmost 5 years ago
Edited to remove
评论 #24184020 未加载
ammanleyalmost 5 years ago
repo name is on point
Hackbratenalmost 5 years ago
Why is the title censored?<p>As a European citizen, I absolutely don’t get it. Why can’t we say fuck on the internet?
评论 #24169617 未加载
person_of_coloralmost 5 years ago
Is this evidence of the 996 culture?
评论 #24179168 未加载
评论 #24179156 未加载
评论 #24179001 未加载
评论 #24179162 未加载
Gummalurialmost 5 years ago
Temporary comment for following and future retrieval of this post.
评论 #24182762 未加载