![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
tong_sun_njc
这个作者很懒,什么都没留下…
展开
-
Leetcode[70] 爬楼梯 dp&快速幂
Leetcode[70] 爬楼梯 dp&快速幂爬楼梯CategoryDifficultyLikesDislikesalgorithmsEasy (50.75%)1330-Tagsdynamic-programmingCompaniesadobe | apple假设你正在爬楼梯。需要 n 阶你才能到达楼顶。每次你可以爬 1 或 2 个台阶。你有多少种不同的方法可以爬到楼顶呢?**注意:**给定 n 是一个正整数。示例 1:输入:原创 2020-11-24 16:44:51 · 179 阅读 · 0 评论 -
Leetcode[28] 实现-str-str
Leetcode[28] 实现-str-str实现 strStr()CategoryDifficultyLikesDislikesalgorithmsEasy (39.64%)607-Tagstwo-pointers | stringCompanies实现 strStr() 函数。给定一个 haystack 字符串和一个 needle 字符串,在 haystack 字符串中找出 needle 字符串出现的第一个位置 (从0开始)。如果不存在,原创 2020-11-05 20:09:39 · 125 阅读 · 0 评论 -
Leetcode[7] 整数反转
Leetcode[7] 整数反转CategoryDifficultyLikesDislikesalgorithmsEasy (34.71%)2292-TagsmathCompanies给出一个 32 位的有符号整数,你需要将这个整数中每位上的数字进行反转。示例 1:输入: 123输出: 321示例 2:输入: -123输出: -321示例 3:输入: 120输出: 21注意:假设我们的环境只能存储得下 32 位的有符号整数,则其数值范围为原创 2020-11-03 18:26:04 · 76 阅读 · 0 评论