Available question text
Construct the longest possible string using up to a, b, and c occurrences of letters 'a', 'b', and 'c' such that it never contains "aaa", "bbb", or "ccc"; the core challenge is to schedule letters (favoring those with higher remaining counts) without creating three identical consecutive characters.
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 1405. Longest Happy String
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source