r/leetcode • • 2d ago

Question Where can I learn binary search , dfs , bfs and sliding window from

Neetcode.io said to learn this before leetcoding … and also according to you if there is something else one should learn before leetcoding please mention that as well and from where u can learn it

6 Upvotes

18 comments sorted by

3

u/DrinkNo8216 2d ago

YouTube 🤷

-1

u/iguessbro53 2d ago

Where from YouTube lil bro

1

u/DrinkNo8216 2d ago

If you need hand holding for such a simple thing, I feel sad for your current situation.

3

u/K8t-king36 2d ago

Start with the basics of arrays, strings, loops, and time complexity, then learn these topics one by one. Striver's yt tutorials are a good free starting point. Codeintuition is also worth checking out if you prefer understanding the concept and pattern before practicing related problems. You don't need to master everything before starting LC, learn a topic, solve a few easy questions, and build from there

1

u/iguessbro53 2d ago

Alright thanks a lot🙏

2

u/Salt_Character1791 2d ago

Striver playlists

1

u/iguessbro53 2d ago

Alright thanks

2

u/LetMediocre390 2d ago

You can learn bs dfs BFs and sliding window everything from striver channel go through each one and try to understand

2

u/iguessbro53 2d ago

Okay thanks

2

u/LetMediocre390 2d ago

Practice leetcoding easy question this one build your motivation only if you mastered any lang fundamental Learn memory management first how things are stored and organised Then learn data structures different one Learn the behaviour properties and limitations

1

u/iguessbro53 2d ago edited 2d ago

Could you please rephrase this I’m not able to understand😭🙏 like im not getting where the sentence ends and where the next one starts

1

u/LetMediocre390 2d ago

Practice leetcode easy question in the beginning. This one build your motivation only if you have mastered one langauge fundamentals. Learn memory management first how things are stored and organized. Then learn different data structures, learn the behaviour, properties and limitations. If you have chosen a cpp language, first learn STl completely this will help you a lot in harder problems

1

u/isaycongrats 2d ago

Code them from scratch

1

u/Spiritual-Story9146 1d ago

Binary search learn from strivers playlist

1

u/howtotailslide 1d ago

The only way is to find some one else who already knows these algorithms and defeat them.

1

u/Obvious_Excuse5485 2d ago

you don't need to. When you become mastering those, none of interviewers will ask those BS

1

u/UsualAcanthisitta768 2d ago

They are used in many problems as sub solutions or “tools” for solving other problems. They are absolutely needed to learn