Tries

Concatenated Words

Given a list of words, you need to find all the concatenated words in the list. A concatenated word is defined as a word that can be formed by concatenating…

Implement Trie (Prefix Tree)

A Trie (Prefix Tree) is a tree-like data structure used to efficiently store a dynamic set of strings while allowing efficient prefix search. In this problem, you need to implement…

Word Break

Given a string s and a dictionary of words dict, you need to determine if s can be segmented into a space-separated sequence of one or more dictionary words.