deno.land / x / masx200_leetcode_test@10.6.5 / longest-word-in-dictionary / PrefixTreeSearchEach.ts

PrefixTreeSearchEach.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { PrefixTree } from "../implement-trie-prefix-tree/PrefixTree.ts";import { PrefixTreeSearchPrefixEach } from "./PrefixTreeSearchPrefixEach.ts";
export function PrefixTreeSearchEach( root: PrefixTree, word: string, // each = false,) { // function search(word: string, each = false) { return !!PrefixTreeSearchPrefixEach(root, word)?.isEnd; // } // return search(word, each);}
masx200_leetcode_test

Version Info

Tagged at
a year ago