摘要: 第一题 题目链接:https://leetcode.cn/problems/ba-shu-zi-fan-yi-cheng-zi-fu-chuan-lcof/ 个人题解:动态规划 $f[i]=\left{\begin{matrix} f[i-1],stol(s[-1] \in [10,25])\ f[ 阅读全文
posted @ 2022-05-12 13:09 黑VS白-清墨 阅读(26) 评论(0) 推荐(0)
摘要: 题目链接:https://leetcode.cn/problems/delete-columns-to-make-sorted/ 个人题解:直接遍历即可,暴力两重循环 代码: class Solution { public: int minDeletionSize(vector<string>& s 阅读全文
posted @ 2022-05-12 08:28 黑VS白-清墨 阅读(26) 评论(0) 推荐(0)