Skip to main content

8 docs tagged with "Trie"

View All Tags

Concatenated Words

Given an array of strings words (without duplicates), return all the concatenated words in the given list of words.

Implement Trie (Prefix Tree)

A 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 are various applications of this data structure, such as autocomplete and spellchecker.

Longest Word in Dictionary

Given an array of strings words representing an English Dictionary, return the longest word in words that can be built one character at a time by other words in words.

Palindrome Pairs

You are given a 0-indexed array of unique strings words. A palindrome pair is a pair of integers (i, j) such that:

Word Search II

Given an m x n board of characters and a list of strings words, return all words on the board.