mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-04 16:12:47 +08:00
20 lines
413 B
Go
20 lines
413 B
Go
package leetcode
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func Test_Problem676(t *testing.T) {
|
|
dict := []string{"hello", "leetcode"}
|
|
obj := Constructor676()
|
|
obj.BuildDict(dict)
|
|
fmt.Printf("obj = %v\n", obj)
|
|
fmt.Println(obj.Search("hello"))
|
|
fmt.Println(obj.Search("apple"))
|
|
fmt.Println(obj.Search("leetcode"))
|
|
fmt.Println(obj.Search("leetcoded"))
|
|
fmt.Println(obj.Search("hhllo"))
|
|
fmt.Println(obj.Search("hell"))
|
|
}
|