Available question text
Given a string s and a list of words, return the longest word that is a subsequence of s (i.e., can be formed by deleting some characters); if multiple words tie, return the lexicographically smallest one, or an empty string if none qualify. Constraints (lengths up to ~1000) imply subsequence checks must be done efficiently across the dictionary.
Related questions
Continue with questions that share topics or the same question type.
- Longest Word in Dictionary
Coding
- Longest Subarray of 1's After Deleting One Element
Coding
- Longest Word With All Prefixes
Coding
- Alien Dictionary
Coding · Array · Breadth-First Search · Depth-First Search
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 524. Longest Word in Dictionary through Deleting
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source