目前许多文章还在CSDN捏(左下角有音乐哦)
随笔分类 - LeetCode刷题
摘要:
1、https://leetcode.cn/problems/rotate-image/description/?envType=study-plan-v2&envId=2024-spring-sprint-100 class Solution { public: void rotate(vecto
阅读全文

摘要:
https://leetcode.cn/problems/game-of-life/?envType=study-plan-v2&envId=2024-spring-sprint-100 先创建一个数组,让它比原数组大一圈,然后将其全设为0,在原数组中每有一个1出现,就将其对应位置的新数组的周围全部
阅读全文

摘要:
https://leetcode.cn/problems/spiral-matrix/description/?envType=study-plan-v2&envId=2024-spring-sprint-100 注意每次改变边界都有判断一次 class Solution { public: vec
阅读全文

摘要:
1、https://leetcode.cn/problems/reverse-words-in-a-string/description/?envType=study-plan-v2&envId=top-interview-150 class Solution { public: string re
阅读全文

摘要:
1、https://leetcode.cn/problems/length-of-last-word/description/?envType=study-plan-v2&envId=top-interview-150 直接从后往前遍历就好 class Solution { public: int
阅读全文

摘要:1、https://leetcode.cn/problems/roman-to-integer/solutions/1/bao-li-po-jie-by-a-studentdog-s1va/?envType=study-plan-v2&envId=top-interview-150 关键在于创建字典
阅读全文