Available question text
Given an even-length digit string, repeatedly apply two operations—add a (mod 10) to digits at odd indices and rotate the string right by b—to produce the lexicographically smallest reachable string. The core challenge is to efficiently explore the finite state space of strings (via BFS/DFS with cycle detection and modular/rotation periodicity optimizations) to find the minimum.
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 1625. Lexicographically Smallest String After Applying Operations
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source