2645. 构造有效字符串的最少插入数
2645. 构造有效字符串的最少插入数
- 难度:
medium
- 原始链接: https://leetcode.cn/problems/minimum-additions-to-make-valid-string
- 标签:
动态规划
,模拟
解法一: 模拟
1 | func addMinimum(word string) int { |
解法二: 动态规划
1 | class Solution { |
解法三: 计数组数
1 | class Solution { |
medium
动态规划
, 模拟
1 | func addMinimum(word string) int { |
1 | class Solution { |
1 | class Solution { |