deno.land / x / masx200_leetcode_test@10.6.5 / implement-trie-prefix-tree / PrefixTreeSearch.ts
1234567import { PrefixTree } from "./PrefixTree.ts";import { PrefixTreeSearchPrefix } from "./PrefixTreeSearchPrefix.ts";
export function PrefixTreeSearch(root: PrefixTree, word: string): boolean { return !!PrefixTreeSearchPrefix(root, word)?.isEnd;}
Version Info