Word Ladder | Leetcode #127
This is a very famous and important problem in graph algorithm which is the word ladder problem and it is from leetcode #127.This problem is a tricky graph problem which can be solved using a set, queue and using BFS algorithm.DFS can't be used for this problem because that can have exponential number unique paths in a graph.We can use either DFS or BFS to find shortest path in Tree but we need to use BFS for finding shortest path in graph due to polynomial time of BFS.I have first explained the problem statement with all the constraints and then I have shown the observations and intuition for solving this problem.After this, I have shown the dry run using SET and BFS algorithm using queue.At the end of the video, I have also shown the code walk through for the solution.CODE LINK is present below as usual. If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)
========================================================================
Join this channel to get access to perks:
https://www.youtube.com/channel/UCnxhETjJtTPs37hOZ7vQ88g/join
INSTAGRAM : https://www.instagram.com/surya.pratap.k/
SUPPORT OUR WORK: https://www.patreon.com/techdose
LinkedIn: https://www.linkedin.com/in/surya-pratap-kahar-47bb01168
WEBSITE: https://techdose.co.in/
TELEGRAM Channel LINK: https://t.me/codewithTECHDOSE
TELEGRAM Group LINK: https://t.me/joinchat/SRVOIxWR4sRIVv5eEGI4aQ
=======================================================================
CODE LINK: https://gist.github.com/SuryaPratapK/e8947c55e83b67c4c9da555bc67f101d
USEFUL LINKS:-
BFS: https://youtu.be/YYq38LTz774
Why DFS can't be used: https://codeforces.com/blog/entry/16479
#graph #graphalgo #leetcode
Видео Word Ladder | Leetcode #127 канала TECH DOSE
========================================================================
Join this channel to get access to perks:
https://www.youtube.com/channel/UCnxhETjJtTPs37hOZ7vQ88g/join
INSTAGRAM : https://www.instagram.com/surya.pratap.k/
SUPPORT OUR WORK: https://www.patreon.com/techdose
LinkedIn: https://www.linkedin.com/in/surya-pratap-kahar-47bb01168
WEBSITE: https://techdose.co.in/
TELEGRAM Channel LINK: https://t.me/codewithTECHDOSE
TELEGRAM Group LINK: https://t.me/joinchat/SRVOIxWR4sRIVv5eEGI4aQ
=======================================================================
CODE LINK: https://gist.github.com/SuryaPratapK/e8947c55e83b67c4c9da555bc67f101d
USEFUL LINKS:-
BFS: https://youtu.be/YYq38LTz774
Why DFS can't be used: https://codeforces.com/blog/entry/16479
#graph #graphalgo #leetcode
Видео Word Ladder | Leetcode #127 канала TECH DOSE
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Word Ladder 2 | Leetcode #126 | BFS + DFSBinary tree maximum path sum | Leetcode #124WORD LADDER (Leetcode) - Code & WhiteboardPerfect squares | Dynamic programming | Legendre's theorem | Leetcode #279Word Search II | DFS + Map | DFS + TRIE | Leetcode #212AMAZON CODING INTERVIEW QUESTION - WORD SEARCH (LeetCode)30 Weird Chess Algorithms: Elo WorldCheapest Flights Within K Stops | DFS + Pruning | Leetcode #787Best Time to Buy and Sell Stock III | Leetcode #123Trapping Rainwater Problem | Leetcode #42Bellman Ford Algorithm | Detect Negative Weight Cycle in GraphsSurrounded Regions | Leetcode #130Word Ladder | leetcode 127 | HindiFind Median from Data StreamWord Ladder | Breadth First Search (LeetCode)Disjoint set UNION by RANK and Path CompressionFind All Anagrams in a String | Sliding window | Leetcode #438Non overlapping intervals | Leetcode #435Moore voting algorithm