Available question text
Given a string s and integer k where you may repeatedly take one of the first k characters and append it to the end, return the lexicographically smallest reachable string — if k == 1 this is the problem of finding the lexicographically minimal rotation of s, while for k > 1 you can effectively fully reorder the string so the answer is s sorted.
Related questions
Continue with questions that share topics or the same question type.
- Design a Deque (Double-Ended Queue)
Coding
- Design Bounded Blocking Queue
Coding
- Design Circular Queue
Coding · Array · Design · Linked List
- Design Front Middle Back Queue
Coding
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 899. Orderly Queue
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source