GoLang Solution For LeetCode Problem: Implement Magic Dictionary
Solving Implement Magic Dictionary in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.
Input: buildDict(["hello", "leetcode"]), Output: Null Input: search("hello"), Output: False Input: search("hhllo"), Output: True Input: search("hell"), Output: False Input: search("leetcoded"), Output: False
- For contest purpose, the test data is rather small by now. You could think about highly efficient algorithm after the contest.
See the full details of the problem Implement Magic Dictionary at LeetCode
Originally posted at: @github.com/halfrost/LeetCode-Go