How to Solve ANY LeetCode Problem (Step-by-Step)

preview_player
Показать описание
You can solve ANY coding interview problem - you just need a step-by-step approach.

In this video, I'll show you a formula for solving coding problems, and I'll also walk you through these steps for a hard LeetCode question, so you know you can solve anything with it!

📘 Chapters
0:00 - Intro
0:48 - Simplify Problem
3:02 - Pattern Recognition
7:27 - Implementation Plan
9:27 - Coding Time
10:06 - Debug

🔗 Resources

#coding #softwareengineer #leetcode
Рекомендации по теме
Комментарии
Автор

Link to the free flowchart I used in this video:

Codebagel
Автор

At the first day of Leetcode, to be honest I felt I should give up. But 1 questions per day, 1 years later, I can pass 70% of easy and 40% medium. I even get an offer by passing 3 Leetcode questions with big bank company. So my suggestion is keep practicing Leetcode like you playing a game!!

alexlfo
Автор

If problem solving is your hobby then leetcode is a great place to be at.

anirudh
Автор

I once got the tip to write down a few cases by hand and then let my brain first do the work, if it can come up with the expected output. if yes, then it means my brain does know an actual algorithm that works, we just need to make it conscious. So first we try to follow what our brain did in simple english, after that we break down the simple english into atomic steps that can be written as code. Once you've done that, you almost always have the optimal algorithm, since our brains are actually genius at this stuff.

It's only really hard when you can't even explain an algorithm in simple english that will produce the correct output, then it's truly about finding and solving a base case first and working your way up to more compllicated cases.

GuRuGeorge
Автор

The feeling after starting to learn sort methods: everything is sort!

CommDao
Автор

This feels super helpful, I used to feed discouraged to do DSA cause I used to think I knew how to solve it but wasn't able to code it. This helped me realized it is more than that

adesai
Автор

Wow, this video is a game-changer! I’ve been struggling with LeetCode problems for a while, but the step-by-step approach you provided made everything so much clearer. The explanation of how to break down the problem and tackle it methodically is exactly what I needed. Thank you for simplifying a process that can feel overwhelming! 🙌

Website_TV_
Автор

I have a competition this Saturday and I've been asked to practice from leetcode. Let me tell you, I'm only a highschool student. The 'easy' question from leetcode take me a whole 30 mins to come up with an algorithm. I was told that I would be asked questions from medium and hard difficulties. With only 3 days left, I'm not sure of how much I would be able to prepare.

yunagarnetsan
Автор

I just found your channel today and have watched a few of your videos. They are some of the best that I've ever seen when it comes to Leetcode prep with clear instructions and helpful tips. Thanks you so much for sharing these!

lisaw
Автор

Finally getting serious about coding and this is really eye opening. Started revising and learning about algorithms to get a strong foundation. Thanks for the video

incognitohacks
Автор

One of the best videos I have watched! Especially going through a problem using the flowchart.

RohaanKhalid-pziu
Автор

I like the flowchart which makes more sense on how to systematically figure out which algorithm to use.

Websitedr
Автор

The problem people have with these questions is that they try or think they need to invent this algorithm (extremely difficult). When in reality the question is merely testng your almost rote knowledge of an already existing solution.

a truly unique answer requires a truly unique puzzle, and you just arent going to get that. These sites are learning tools not MENSA entrance exams.

ttt
Автор

Keep it up brother...I was one of those subscribers when you had started this channel..Its inspiring to see you grow..❤❤

electrode
Автор

I want to be sure, in 1:57 you try to change begin-word to the word in the word-List until to reach the end-word

haniissa
Автор

Sh1t, we literally skipped data structures and algorithms last year in my 2nd year at college. We had the subject but we weren't even taught about it (we basically hovered over linked lists and big O notation the entire semester!). I thought it wasn't important and thought how easy the subject was. Turns out I missed a lot! Now it's time to study hard 😢

vulpritprooze
Автор

Awesome! This video was very helpful. ❤

abhinavprabhakar
Автор

Perfect practice makes perfect indeed.

valentinrafael
Автор

thanks a lot man, 7/10/24
Simply the problem
Pattern recognition
Implementation (pseudocode)
Code
Debug

rahulshendre
Автор

I hate how interviews force Leetcode questions. Super annoying. I couldn’t get through the first problem.

nintendopro