Word Search - Leetcode 79 - Recursive Backtracking (Python)

  Рет қаралды 1,630

Greg Hogg

Greg Hogg

Күн бұрын

The Python code for this problem can be found at my GitHub repo here: github.com/gahogg/Leetcode-So...
Please check my playlists for free DSA problem solutions:
• Array & String Questions
• 2 Pointers Questions
• Sliding Window Questions
• Binary Search Questions
• Stack Questions
• Linked List Questions
• Tree Questions
• Heap Questions
• Recursive Backtracking...
• Graph Questions
• Dynamic Programming (D...
Learn Python and Data Science at mlnow.ai :)
Best Courses for Analytics:
---------------------------------------------------------------------------------------------------------
+ IBM Data Science (Python): bit.ly/3Rn00ZA
+ Google Analytics (R): bit.ly/3cPikLQ
+ SQL Basics: bit.ly/3Bd9nFu
Best Courses for Programming:
---------------------------------------------------------------------------------------------------------
+ Data Science in R: bit.ly/3RhvfFp
+ Python for Everybody: bit.ly/3ARQ1Ei
+ Data Structures & Algorithms: bit.ly/3CYR6wR
Best Courses for Machine Learning:
---------------------------------------------------------------------------------------------------------
+ Math Prerequisites: bit.ly/3ASUtTi
+ Machine Learning: bit.ly/3d1QATT
+ Deep Learning: bit.ly/3KPfint
+ ML Ops: bit.ly/3AWRrxE
Best Courses for Statistics:
---------------------------------------------------------------------------------------------------------
+ Introduction to Statistics: bit.ly/3QkEgvM
+ Statistics with Python: bit.ly/3BfwejF
+ Statistics with R: bit.ly/3QkicBJ
Best Courses for Big Data:
---------------------------------------------------------------------------------------------------------
+ Google Cloud Data Engineering: bit.ly/3RjHJw6
+ AWS Data Science: bit.ly/3TKnoBS
+ Big Data Specialization: bit.ly/3ANqSut
More Courses:
---------------------------------------------------------------------------------------------------------
+ Tableau: bit.ly/3q966AN
+ Excel: bit.ly/3RBxind
+ Computer Vision: bit.ly/3esxVS5
+ Natural Language Processing: bit.ly/3edXAgW
+ IBM Dev Ops: bit.ly/3RlVKt2
+ IBM Full Stack Cloud: bit.ly/3x0pOm6
+ Object Oriented Programming (Java): bit.ly/3Bfjn0K
+ TensorFlow Advanced Techniques: bit.ly/3BePQV2
+ TensorFlow Data and Deployment: bit.ly/3BbC5Xb
+ Generative Adversarial Networks / GANs (PyTorch): bit.ly/3RHQiRj
Become a Member of the Channel! bit.ly/3oOMrVH
Follow me on LinkedIn! / greghogg
Full Disclosure:
Please note that I may earn a commission for purchases made at the above sites! I strongly believe in the material provided; I only recommend what I truly think is great. If you do choose to make purchases through these links; thank you for supporting the channel, it helps me make more free content like this!

Пікірлер: 5
@nikhilsastry6631
@nikhilsastry6631 2 ай бұрын
Hey greg ... Can you make a video or make a pdf of something that consists all strings based ir other all category algorithms ... I want particularly for string like kmp ..m can you put all the algos at one place from easy to hard
@GregHogg
@GregHogg 2 ай бұрын
This question is part of a playlist that has all the leetcode questions I've done on there so far. I also have them in mini playlists organized by category. I hope this helps!!
@thatnolan
@thatnolan Ай бұрын
Any reason to use pos in backtrack() instead of i, j? You change it back to i, j in the first time anyways. The efficiency goes up quite a bit when changing pos to i, j
@dominikschweigl574
@dominikschweigl574 2 ай бұрын
Doesnt that mean your solution doesnt work whenever the word is taking up the whole grid? Like in the example for 1x1 there is nowhere to go to and it would return false, right?
@GregHogg
@GregHogg 2 ай бұрын
Actually, no, this is not the case. It's particularly when there's exactly one spot. From the position on the last character, the board would just need literally any valid space to go to. Even if that space was marked as a hashtag or a character or whatever, it just needs an actual valid (i,j) position to move to
Max Area of Island - Leetcode 695 - Graphs (Python)
11:15
Greg Hogg
Рет қаралды 1,3 М.
WORD SEARCH | LEETCODE 79 | PYTHON DFS SOLUTION
18:54
Cracking FAANG
Рет қаралды 3,1 М.
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 5 МЛН
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 4,7 МЛН
Cat Corn?! 🙀 #cat #cute #catlover
00:54
Stocat
Рет қаралды 15 МЛН
Number of Islands - Leetcode 200 - Graphs (Python)
11:01
Greg Hogg
Рет қаралды 2,6 М.
Koko Eating Bananas - Leetcode 875 - Binary Search (Python)
13:34
Fibonacci Number - Leetcode 509 - Dynamic Programming (Python)
19:05
Should You Still Learn To Code In 2024?
15:12
Tina Huang
Рет қаралды 81 М.
Algorithms project: Word search solver - Inside code
24:32
Inside code
Рет қаралды 12 М.
10 Nooby Mistakes Devs Often Make In Python
24:31
Indently
Рет қаралды 52 М.
Simplify Path - Stack - Leetcode 71 - Python
12:47
NeetCode
Рет қаралды 52 М.
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 5 МЛН