filmov
tv
Word Search II | LeetCode | Solution Explained in Detail

Показать описание
Amazon Interview Question. 212. Word Search II is a hard problem. I explain in detail how we can use the Trie/Prefix Tree & concepts from Word Search I to build the solution for this problem. We start with a revision of Word Search I and then look at observations, realizing the presence of common prefixes that can make our search easier. So, we develop the ideas of prefix trees and code that in Python3. Then we move onto looking at parallels between Word Search I and Word Search II, and we see a lot of similarities. Finally, we code that up as well. Then we do some basic setup and get this solution accepted.
Writeup (Summary + Code):
Previous references:
Word Search I
Trie/Prefix Tree
Problem link:
==================================================
Timestamps:
0:00 Introduction
0:16 Reviewing Word Search I
4:53 Word Search II problem discussion
6:24 Observations & A free tip
9:47 Part 1: Using Prefix Tree/Trie
11:56 Part 1: Coding Prefix Tree/Trie
15:33 Part 2: Extending Word Search I Logic
18:02 Part 2: Coding Extension
26:53 Final Discussion
==================================================
Stuff I use:
NOTE: These are affiliate links.
- Doesn't cost you anything
- Gives me a kickback if you buy this :)
==================================================
Follow:
#LeetCode #coding #programming #chaudhary1337
==================================================
Writeup (Summary + Code):
Previous references:
Word Search I
Trie/Prefix Tree
Problem link:
==================================================
Timestamps:
0:00 Introduction
0:16 Reviewing Word Search I
4:53 Word Search II problem discussion
6:24 Observations & A free tip
9:47 Part 1: Using Prefix Tree/Trie
11:56 Part 1: Coding Prefix Tree/Trie
15:33 Part 2: Extending Word Search I Logic
18:02 Part 2: Coding Extension
26:53 Final Discussion
==================================================
Stuff I use:
NOTE: These are affiliate links.
- Doesn't cost you anything
- Gives me a kickback if you buy this :)
==================================================
Follow:
#LeetCode #coding #programming #chaudhary1337
==================================================
Комментарии