LeetCode: 1663-Smallest String With A Given Numeric Value 解題紀錄
題目
The numeric value of a lowercase character is defined as its position (1-indexed)
in the alphabet, so the numeric value of a
is 1
, the numeric value of b
is 2
, the numeric value of c
is 3
, and so on.