Available question text
Given n and k, construct the lexicographically smallest lowercase string of length n whose characters' 1..26 numeric values sum to k (feasible since n ≤ k ≤ 26·n). The core challenge is to distribute the required extra value above the n minimal 'a's across positions so the resulting string is dictionary-minimal, typically by allocating increases as far to the right as possible.
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 1663. Smallest String With A Given Numeric Value
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source