3106. 满足距离约束且字典序最小的字符串
满足距离约束且字典序最小的字符串
- 难度:
medium
- 原始链接: https://leetcode.cn/problems/lexicographically-smallest-string-after-operations-with-constraint
- 标签:
贪心
解法一: 贪心
1 | func getSmallestString(s string, k int) string { |
1 | class Solution { |
medium
贪心
1 | func getSmallestString(s string, k int) string { |
1 | class Solution { |