Available question text
Given a string s and a budget k, find the lexicographically smallest string t you can form by changing characters where each character change costs the cyclic distance on the alphabet and the total cost must be ≤ k. The core challenge is allocating the additive per-character cyclic-change budget to pick the smallest possible letters (often via a greedy per-position decision) while respecting the total cost constraint.
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 3106. Lexicographically Smallest String After Operations With Constraint
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source