![](https://img-blog.csdnimg.cn/20190918140037908.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
从零开始的leetcode生活
准备开始当牛马了
SUNSKU
从0开始的leetcode生活
展开
-
Leetcode 300
solution 2 : 二分(TODO)solution 1 : 动态规划。原创 2024-03-14 21:25:05 · 160 阅读 · 1 评论 -
Leetcode 45
solution1 : 贪心算法。原创 2024-03-05 21:39:46 · 599 阅读 · 0 评论 -
Leetcode 55
solution1 : 贪心算法。原创 2024-03-05 21:25:07 · 205 阅读 · 0 评论 -
Leetcode 121
solution1 : 经典双指针。原创 2024-03-04 22:44:22 · 211 阅读 · 1 评论 -
Leetcode 189
solution1 : 数组拷贝。原创 2024-03-04 22:27:08 · 149 阅读 · 1 评论 -
Leetcode 122
solution2 : 简化dp存储。solution1 : dp算法。原创 2024-03-05 09:20:02 · 157 阅读 · 0 评论 -
Leetcode 169
solution3 : 用正负判断数的个数,如77555,假设第一个数是7,则(7,1) -> (7,2) -> (7,1) -> (7,0) -> (5, 1)solution2 : hashmap(回顾下代码)solution1 : 有序数组的一半肯定是众数。原创 2024-03-03 16:42:01 · 123 阅读 · 1 评论 -
Leetcode 80
solution : 双指针(有思路但还是很难写啊😒)原创 2024-03-03 16:26:04 · 159 阅读 · 1 评论 -
Leetcode 26
solution :双指针(经典)原创 2024-03-02 21:25:06 · 180 阅读 · 0 评论 -
Leetcode 27
solution : 双指针。原创 2024-02-29 22:23:31 · 480 阅读 · 0 评论 -
Leetcode 88
solution1 : sort函数。solution2 : 双指针。原创 2024-02-29 22:02:40 · 105 阅读 · 0 评论