Available question text
Given a list of words, compute the minimum length of a '#'‑terminated reference string that encodes them by noting you can omit any word that is a suffix of another; the result is the sum of lengths of words that are not suffixes of any other word plus one '#' per such word. This reduces to identifying and keeping only words that aren't suffixes of any other word (e.g., via reversed-trie or set-based suffix elimination).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 820. Short Encoding of Words
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source