Available question text
Reorder the words of a sentence so they are in nondecreasing length, preserving original order for equal lengths, and return the sentence with the first word capitalized and all other words lowercase. Input is a single space–separated sentence (first letter uppercase, rest lowercase), length up to 10^5.
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 1451. Rearrange Words in a Sentence
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source