🌐
GitHub
github.com › Chen-Cai-OSU › leetcode-book
GitHub - Chen-Cai-OSU/leetcode-book: Descriptions and python solutions to all leetcode problems in a single 1985-page pdf
So here is descriptions and solutions to all leetcode problems in python in a single 1985-page pdf.
Starred by 55 users
Forked by 7 users
🌐
GitHub
github.com › Chen-Cai-OSU › leetcode-book › blob › master › README.md
leetcode-book/README.md at master · Chen-Cai-OSU/leetcode-book
Descriptions and python solutions to all leetcode problems in a single 1985-page pdf - Chen-Cai-OSU/leetcode-book
Author   Chen-Cai-OSU
🌐
Reddit
reddit.com › r/csmajors › books > leetcode
r/csMajors on Reddit: Books > Leetcode
October 3, 2018 -

I've been trying to grind Leetcode. But almost everytime I get stuck or the solutions I come up with are brute Force algorithms with awful runtimes. Then I look at the solutions and convince myself that I understood the problem all while knowing full well that I didn't learn Jack shit. And with this comes the feeling of dread.

If this describes your situation too, then I highly encourage reading books like Cracking the coding interview. The solutions are explained extremely well, it gives solid outlines on how to approach the problem and how to use the right data structures at the right times. It feels like I'm actually learning something and is preparing me better for tackling Leetcode later on.

Hope this helps anyone going through the same frustration with Leetcode.

Top answer
1 of 5
152

I used to think that way too. I used to be in a rush to do LeetCode since I had interviews coming up and was very busy with school. I decided to try and prepare better since I am graduating in May 2021. I started doing at least 5 Leetcode problems a day since June. I try to do 10 on weekends. I know these numbers sound high, but I really don't want to fuck up again so I'm doing everything I can to get better.

Since I have much more time to prepare and don't feel rushed, I try to take my time solving the problems and looking at solutions. What I found is that the biggest skill you develop with Leetcode is problem solving. I see a lot of people on Reddit say that LeetCode only tests your data structures and algorithms knowledge, which is 100% false. In fact, knowing DS&A is the easy part of LeetCode. Once you know how they are implemented and their runtimes, you know DS&A. The difficulty of LeetCode is applying data structures to problems and solving them. Having a good explanation for solutions is very important, but understanding solutions is not what matters. What actually matters is practicing problem solving. I used to give up quite quickly on problems and then just try to understand solutions, which is a terrible approach. While I did remember a lot of solutions, I couldn't solve new problems for shit.

Once I really started practicing trying to solve problems I became a lot better at Leetcode. Understanding solutions is only one part of the equation, you first need to solve problems.

*Edit: I just wanted to add on to what I said about LeetCode not testing your DS&A knowledge whatsoever. Before starting LeetCode and even knowing it existed, I had already done the DS&A course and was a TA for that course. I knew all the runtime complexities, knew how to implement all of them and knew advanced algorithms (probabilistic, meta-heuristics and approximative algorithms). It's fair to say that I knew very well all the theory for DS&A. However, I struggled on LeetCode easy problems when I first started and was really bad at solving them. Even if I knew DS&A very well, it didn't help me at all to outperform my colleagues who knew basic theory but had practiced LeetCode for a while. The real difficulty of LeetCode is not understanding that a HashSet performs searches in O(1). The difficulty is understanding when this data structure could be useful and what repeated computations could be stored in a Set for a given problem.

The reason I am writing this is because everytime someone on Reddit says that he is struggling with LeetCode, many people just comment to learn more about DS&A. I'm frankly tired of seeing that shitty advice. People who struggle at LeetCode don't struggle because they don't know what a stack is, they struggle because they didn't develop the problem solving skills and haven't seen problems solved usings stacks. There are plenty of hard problems that are solved by using like 3 stacks in a smart way. That doesn't require extensive DS&A skills to figure out, it requires great problem solving skills.

2 of 5
17

Agreed with a slight addition-- I think you do need both. You won't get too far if you just sit in front of the problems and try to work with the first solution that comes to you (when I did that my runtime was always really bad and most of the time I was just aimlessly trying to solve them). So you gotta read up on what patterns you should be looking for and specific ways on how to approach the problem. But it's also very easy to just read and be like, mhm okay, this looks good to me but you won't know if you can actually do it yourself or not until you do the problems yourself. I think a good approach (ideally if you still have a few months to prep) is to read one of those chapters and then try to solve some new lc questions on the strategy you just learned-- that's at least what works best for me.

🌐
SourceForge
sourceforge.net › projects › leetcode-book.mirror
LeetCode Book download | SourceForge.net
Comprehensive study guide for coding interviews. LeetCode-Book is a comprehensive study guide for coding interviews that consolidates algorithm patterns, data-structure templates, and worked LeetCode solutions.
🌐
Goodreads
goodreads.com › book › show › 221446594-essential-leetcode-for-interview-success
Essential LeetCode for Interview Success: Python Solutions to 200 Must-Know Problems by Zhen Wei | Goodreads
Recently I can refresh my skills in 21 days, dedicating just 1-2 hours daily by referring to my notes. This handbook is organized into 21 1-20 each include 10 problems, totaling 200 problems with detailed solutions and notes.
Author   Zhen Wei
Pages   289
🌐
HackerNoon
hackernoon.com › empowering-newbies-building-confidence-through-600-leetcode-solutions-a-guide-for-beginners
Empowering Newbies: Building Confidence Through 600+ LeetCode Solutions – A Guide for Beginners | HackerNoon
January 19, 2024 - Discover valuable insights on tackling over 600 LeetCode problems. Gain practical advice and useful resources for mastering coding interviews successfully.
🌐
Scribd
scribd.com › document › 420510657 › Leetcode-Python-Solutions
LeetCode Python Solutions Guide | PDF | Algorithms And Data Structures | Discrete Mathematics
It lists solutions to problems ... states that the book contains the author's accepted Python solutions to Leetcode problems and plans to eventually include detailed explanations for each solution....
Rating: 4.5 ​ - ​ 8 votes
🌐
Amazon
amazon.com › leetcode › s
Amazon.com: Leetcode
Part of: Programming Interview Problems (1 books) Kindle · Free with Kindle Unlimited membership Join Now · Other format: Paperback · Spanish Edition by Wes McKinney · Paperback · See options · Other format: Kindle · by Philip Robbins and Emmanuel Oyibo · Paperback · Other formats: ...
🌐
GitHub
github.com › Chen-Cai-OSU › leetcode-book › blob › master › all-medium-problems.pdf
leetcode-book/all-medium-problems.pdf at master · Chen-Cai-OSU/leetcode-book
Descriptions and python solutions to all leetcode problems in a single 1985-page pdf - Chen-Cai-OSU/leetcode-book
Author   Chen-Cai-OSU
Find elsewhere
🌐
Raddevon
raddevon.com › articles › the-best-solutions-to-leetcode-problems
The best solutions to LeetCode problems » Rad Devon
It doesn’t matter which languages you’re familiar with, this book can help you get a better understanding of algorithms which will make it easier for you to solve LeetCode problems. Cracking the Coding Interview- This has to be the most recommended book for coding interviews. Any time the subject comes up, someone is around to toss out this title. Be aware that the solutions in the book are in Java.
🌐
SlideShare
slideshare.net › slideshow › leetcode-solutions-in-java-pdf › 251463480
LeetCode Solutions In Java .pdf
JavaScript is disabled in your browser · Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
🌐
Gitbooks
dxmahata.gitbooks.io › leetcode-python-solutions › content
Introduction · Leetcode Python Solutions
This book will contain my solutions in Python to the leetcode problems. Currently, I will just try to post the accepted solutions. The plan is to eventually include detailed explanations of each and every solution.
🌐
LeetCode
leetcode.com › u › book
book - LeetCode Profile
View book's profile on LeetCode, the world's largest programming community.
🌐
LeetCode
leetcode.com › problems › find-books-with-polarized-opinions
Find Books with Polarized Opinions - LeetCode
Can you solve this real interview question? Find Books with Polarized Opinions - Table: books +-------------+---------+ | Column Name | Type | +-------------+---------+ | book_id | int | | title | varchar | | author | varchar | | genre | varchar | | pages | int | +-------------+---------+ book_id is the unique ID for this table.
🌐
LeetCode
leetcode.com › discuss › interview-question › system-design › 3133672 › New-Book-by-Alex-Xu-or-Machine-Learning-System-Design-My-Solutions
New Book by Alex Xu | Machine Learning System Design - My Solutions ...
As a heads up, I wouldn't call myself his biggest fan since I think he does a lot of hand waving on some occasions that I had found frustrating (which was part of the motivation behind trying to crack all the problems independently ahead of the book's release) I was able to do this from a post that included all of his chapter titles a few weeks ago. Here are the chapter titles are below with a link to my solution for each problem going off just the prompt from the chapter title alone.
🌐
GitHub
github.com › mahbuba01 › LeetCode-Problem-Solving-and-DSA-Book-Resources
GitHub - mahbuba01/LeetCode-Problem-Solving-and-DSA-Book-Resources: LeetCode, Important Pattern, NeetCode, Blind75, Free Premium Books: DSA
LeetCode, Important Pattern, NeetCode, Blind75, Free Premium Books: DSA - mahbuba01/LeetCode-Problem-Solving-and-DSA-Book-Resources
Starred by 85 users
Forked by 29 users
🌐
Leetcodehelp
leetcodehelp.github.io
LeetCode Solutions
LeetCode Solutions in C++, Java, and Python.Solutions of All 2444 LeetCode Problems.
🌐
Amazon
amazon.com › LeetCode-C-Solutions-Ali-Anari-ebook › dp › B08H3SSLH2
Amazon.com: LeetCode C++ Solutions eBook : Anari, Ali: Kindle Store
CategoriesNew & TrendingDeals & RewardsBest Sellers & MoreMembershipsCommunitiesMoreMoreYour Books · Kindle Store · › · Kindle eBooks · › · Education & Teaching · › · Studying & Workbooks · › · Study Guides · Image not available for Color: To view this video download Flash Player · Read sample · by Ali Anari (Author) Format: Kindle Edition · Since free questions may be even mistakenly taken down by some companies, only solutions will be posted now. There are new LeetCode questions every week.