String
1625. Lexicographically Smallest String After Applying Operations
A digit string s and numbers a, b; two operations any number of times: add a (mod 10) to all odd-indexed digits, or cyclically rotate the string right by b. Return the lexicographically smallest…
Loading…