[LeetCode] 211. Design Add and Search Words Data Structure - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/design-add-and-search-words-data-structure/description/ Design Add and Search Words Data Structure - LeetCode Can you solve this real interview question? Design Add and Search Words Data Structure - Design a data structure that supports adding new words and finding if a string matches any previously added string. Implement the WordDictionary class: * WordDictionar l..
[LeetCode] 208. Implement Trie (Prefix Tree) - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/implement-trie-prefix-tree/ Implement Trie (Prefix Tree) - LeetCode Can you solve this real interview question? Implement Trie (Prefix Tree) - A trie [https://en.wikipedia.org/wiki/Trie] (pronounced as "try") or prefix tree is a tree data structure used to efficiently store and retrieve keys in a dataset of strings. There leetcode.com 문제 A trie (pronounced as "try")..
HYOJUN
'prefix tree' 태그의 글 목록