public void HasPrefixLookupBenchmark() { for (int i = 0; i < _words.Length; i++) { string prefix = _words[i].DeleteLastCharacter(); Assert.IsTrue(_trie.HasPrefix(prefix)); } }
public void HasPrefix01() { bool hasPrefix1 = trie.HasPrefix("tes"); Assert.IsTrue(hasPrefix1); }