Given a string, choose a substring once and rotate it right by one position, and return the lexicographically smallest string possible.
Unlock detailed company stats for this questionUpgrade
Community answers
No answers contributed by the community yet.
Related questions
Build the lexicographically smallest string with a subsequence.Construct the lexicographically smallest signed permutation with a given sum.Given arrays A and B, build C with C[i] chosen from A[i] or B[i] so that the smallest missing positive integer of C is as small as possible, and return it.Related courses

Course

Course
Course
