LeetCode 815. Bus Routes Detailed Explanation + Coding (Python)

  Рет қаралды 3,444

Algorithms Simplified

Algorithms Simplified

Күн бұрын

Пікірлер: 16
@algorithmssimplified1563
@algorithmssimplified1563 2 жыл бұрын
Thanks for watching the video! Any feedback and suggestions would be greatly appreciated :)
@UIEngineering101
@UIEngineering101 8 ай бұрын
This is the BEST walkthrough of this problem anywhere on the entire internet
@shivanshshekhar
@shivanshshekhar 18 күн бұрын
Hey, you are really good at this. Please make more videos on other problems, you are amazing at explaining. I was struggling with this problem but your explanation was clear and the visuals really helped! Thank you.
@EaswaranParamasivam
@EaswaranParamasivam 7 ай бұрын
Great explanation!!
@devinpadron5
@devinpadron5 9 ай бұрын
Thank you for the solid explanation and visuals.
@lifeincentralvalley9430
@lifeincentralvalley9430 2 жыл бұрын
wow, it really appreciate your tutorial, this video helped me solve bus route, your video is so clear, organized and easy to understand, great resource!
@soumyajitchatterjee5822
@soumyajitchatterjee5822 2 ай бұрын
Great Soluton!!!
@sagarpotnis1215
@sagarpotnis1215 2 жыл бұрын
this solution is on par with neetcodes solution!! awesome ! please keep posting more thanks!!!
@sagarpotnis1215
@sagarpotnis1215 11 ай бұрын
@@michael_rayz on par = as good as
@opwr
@opwr 2 жыл бұрын
Well explained! Thank you for making this 😁
@paveluvarov5941
@paveluvarov5941 2 жыл бұрын
Thank you very much! Great explanation! I hope more videos are to come.
@EndOspLuk
@EndOspLuk 2 жыл бұрын
Thank you for taking the time to explain this, I would like to offer some feedback as a way to repay you! You can actually simplify these for loops you're writing by doing something like ``` if currStop in visited_stops: continue # go to the next iteration # else cur stops is not visited here then do the logic in the if statement ``` Same thing for the final for-if-for-if combo, that way you can improve the code layout a little bit. Also you could use `defaultdict` from collections to do something like. ``` stopToRoutes = defaultdict(lambda: set()) for route in range(len(routes)): for stop in routes[route]: stopToRoutes[stop].add(route) ```
@ritwik121
@ritwik121 2 жыл бұрын
great lecture...
@abdulazizfahim2140
@abdulazizfahim2140 2 жыл бұрын
Best explanation
@aowowow-no1xe
@aowowow-no1xe 4 ай бұрын
Hey what software do you use to draw these?
@cbverma2k
@cbverma2k 2 жыл бұрын
100 likes
Leetcode 975. Odd Even Jump Detailed Explanation + Coding (Python)
1:02:25
Algorithms Simplified
Рет қаралды 4,6 М.
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 3,1 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 16 МЛН
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 121 МЛН
UBER'S #1 INTERVIEW QUESTION | BUS ROUTES | PYTHON BFS SOLUTION
18:03
Cracking FAANG
Рет қаралды 4,1 М.
LeetCode 815. Bus Routes
21:00
Happy Coding
Рет қаралды 9 М.
815. Bus Routes | Tricky BFS
19:27
Aryan Mittal
Рет қаралды 4,1 М.
why are switch statements so HECKIN fast?
11:03
Low Level
Рет қаралды 422 М.
why do hackers love strings?
5:42
Low Level
Рет қаралды 421 М.
Algorithms Explained for Beginners - How I Wish I Was Taught
17:38
Internet Made Coder
Рет қаралды 359 М.
basics of CODING in 10 minutes
15:34
The StudyTube Project
Рет қаралды 1,5 МЛН
Leetcode 79 Problem 4 - Bus Routes
11:17
code_report
Рет қаралды 15 М.
528. Random Pick With Weight - CONCISE EXPLANATION & WALKTHROUGH
8:47
Algorithms Simplified
Рет қаралды 736
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 3,1 МЛН