WORD SEARCH | LEETCODE 79 | PYTHON DFS SOLUTION

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

Cracking FAANG

Cracking FAANG

Күн бұрын

Пікірлер: 9
@rohithamaz8767
@rohithamaz8767 Жыл бұрын
You really did a fantastic job … easiest & clear explanation… that’s awesome … I prefer recursion approach ..
@dnm9931
@dnm9931 10 ай бұрын
You’re really good at explaining things! Please make more videos! You just gained a sub!
@ebenezeracquah478
@ebenezeracquah478 Жыл бұрын
Thanks for the video explanation.
@CreativeMining413
@CreativeMining413 Жыл бұрын
Is there a way we can use memoization to optimize this even further or it wouldn't make a difference? Great vid btw
@m.y.7230
@m.y.7230 4 ай бұрын
very good explanation thanks
@subee128
@subee128 10 ай бұрын
Thanks
@spoiltchild6517
@spoiltchild6517 2 жыл бұрын
Facing "Time Limit Exceeded" error with same solution
@crackfaang
@crackfaang 2 жыл бұрын
Double check your DFS function for accidentally getting caught in an infinite loop. Otherwise if the code is the same I have noticed that for extremely popular questions so many people have answered it that the cutoff times for the code judge have become skewed and solutions that are valid solutions will now TLE.
@spoiltchild6517
@spoiltchild6517 2 жыл бұрын
@@crackfaang I found the solution by adding the following code at beginning: # To prevent TLE,reverse the word, if frequency of the first letter is more than the last letter's board_count = defaultdict(int,sum(map(Counter,board),Counter())) if board_count[word[0]] > board_count[word[-1]]: word = word[::-1]
WORD LADDER | LEETCODE # 127 | PYTHON BFS SOLUTION
23:17
Cracking FAANG
Рет қаралды 1,8 М.
Word Search - Leetcode 79 - Recursive Backtracking (Python)
12:24
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 5 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 5 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 51 МЛН
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3 МЛН
LeetCode Word Search Solution Explained - Java
12:08
Nick White
Рет қаралды 47 М.
Word Search - LeetCode 79 - Python (BACKTRACKING)
24:36
DEEPTI TALESRA
Рет қаралды 1,3 М.
Word Search | LeetCode 79 | C++, Java, Python3
28:04
Knowledge Center
Рет қаралды 30 М.
Word Search
8:46
Kevin Naughton Jr.
Рет қаралды 139 М.
WORD BREAK II | LEETCODE # 140 | PYTHON DFS SOLUTION
21:20
Cracking FAANG
Рет қаралды 6 М.
Integer to English Words - Leetcode 273 - Python
20:59
NeetCodeIO
Рет қаралды 15 М.
Word Search II - Backtracking Trie - Leetcode 212 - Python
20:54
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 5 МЛН