x/masx200_leetcode_test/implement-trie-prefix-tree/PrefixTree.ts
1234567891011export interface PrefixTree { children: Map<string, PrefixTree>; isEnd: boolean;}export function PrefixTree( isEnd = false, children = new Map<string, PrefixTree>(),): PrefixTree { return { children: children, isEnd: isEnd };}