Available question text
Find the longest substring of s such that for every letter appearing in that substring, both its lowercase and uppercase forms also appear; if multiple substrings tie, return the earliest one, or an empty string if none. (s length ≤ 100, letters are A–Z/a–z.)
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 1763. Longest Nice Substring
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source