Solving Implement Magic Dictionary in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

Example 1:

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

Note:

  1. 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