Pattern 22: LeetCode Interview Patterns24 sections · 736 units
Open in CourseQuiz: Wildcard Search
Test your understanding
Check Your Understanding
When searching for ".ad" in a trie containing "bad", "dad", "mad", how do you handle the "." character?
- A.Skip the "." and continue with the next character
- B.Try all children of the current node recursively
- C.Replace "." with the most common letter
- D.Return false immediately since "." is not a letter