x/masx200_leetcode_test/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;}