Available question text
Build the lexicographically smallest string of length n+m-1 such that for each i, the length-m window at i equals str2 if str1[i]=='T' and differs from str2 if str1[i]=='F'; the core challenge is satisfying overlapping equality constraints (propagating fixed characters) while ensuring every 'F' window has at least one mismatch, or reporting impossibility.
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 3474. Lexicographically Smallest Generated String
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source