摘要: 20230209 卡一下还是过了 20230218 dp记得初始化 20230220 顺利通过 20230308 顺利通过 原题解 题目 给你一个只包含 '(' 和 ')' 的字符串,找出最长有效(格式正确且连续)括号子串的长度。 约束 解法 解法一 class Solution { public: 阅读全文
posted @ 2023-02-05 21:48 垂序葎草 阅读(35) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2023.cnblogs.com/blog/1303455/202302/1303455-20230205210746343-556749166.png) ![](https://img2023.cnblogs.com/blog/1303455/202302/1303455-20230205213413466-1706672696.png) 阅读全文
posted @ 2023-02-05 21:34 垂序葎草 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 20230206顺利通过 20230211 卡了,但是过了 20230220 顺利通过 20230306 顺利通过 原题解 ###题目 约束 ###解法 class Solution { public: void nextPermutation(vector<int>& nums) { int i 阅读全文
posted @ 2023-02-05 03:38 垂序葎草 阅读(10) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2023.cnblogs.com/blog/1303455/202302/1303455-20230205031951324-827167274.png) 阅读全文
posted @ 2023-02-05 03:20 垂序葎草 阅读(14) 评论(0) 推荐(0) 编辑