![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字符串
MrDing_CoolPig
这个作者很懒,什么都没留下…
展开
-
基本计算器II
227. Basic Calculator II来源: LeetCode 227. Basic Calculator II题目描述227. Basic Calculator IIImplement a basic calculator to evaluate a simple expression string.The expression string contains only n...原创 2020-04-28 16:59:11 · 193 阅读 · 1 评论 -
比较版本
165. Compare Version Numbers来源: LeetCode 165. Compare Version Numbers题目描述165. Compare Version NumbersCompare two version numbers version1 and version2.If version1 > version2 return 1; if versi...原创 2020-04-28 13:59:36 · 262 阅读 · 1 评论 -
复原IP地址
93. Restore IP Addresses来源: LeetCode 93. Restore IP Addresses题目描述93. Restore IP AddressesGiven a string containing only digits, restore it by returning all possible valid IP address combinations....原创 2020-04-28 12:05:59 · 298 阅读 · 1 评论 -
简化路径
71. Simplify Path来源: LeetCode 71. Simplify Path题目描述71. Simplify PathGiven an absolute path for a file (Unix-style), simplify it. Or in other words, convert it to the canonical(规范的) path.In a UNI...原创 2020-04-28 10:53:20 · 149 阅读 · 0 评论 -
整数转罗马数字
Integer to Roman来源: LeetCode Integer to Roman题目描述12. Integer to RomanRoman numerals are represented by seven different symbols: I, V, X, L, C, D and M.Symbol ValueI 1V ...原创 2020-04-28 10:21:01 · 120 阅读 · 0 评论 -
434.字符串中得单词数
434. Number of Segments in a String来源: LeetCode 434. Number of Segments in a String题目描述434. Number of Segments in a StringCount the number of segments in a string, where a segment is defined to be...原创 2020-04-27 21:49:13 · 108 阅读 · 0 评论 -
压缩字符串
443. String Compression来源: LeetCode 443. String Compression题目描述443. String CompressionGiven an array of characters, compress it in-place.The length after compression must always be smaller than ...原创 2020-04-27 21:24:20 · 162 阅读 · 0 评论 -
把字符串转换成整数
面试题67. 把字符串转换成整数来源: LeetCode 面试题67. 把字符串转换成整数注意:本题与主站 8 题相同题目描述面试题67. 把字符串转换成整数写一个函数 StrToInt,实现把字符串转换成整数这个功能。不能使用 atoi 或者其他类似的库函数。 首先,该函数会根据需要丢弃无用的开头空格字符,直到寻找到第一个非空格的字符为止。当我们寻找到的第一个非空字符为正或...原创 2020-04-23 18:07:27 · 160 阅读 · 0 评论 -
验证回文字符串 Ⅱ
680. 验证回文字符串 Ⅱ来源: LeetCode 680. 验证回文字符串 Ⅱ题目描述680. 验证回文字符串 Ⅱ给定一个非空字符串 s,最多删除一个字符。判断是否能成为回文字符串。示例 1:输入: "aba"输出: True示例 2:输入: "abca"输出: True解释: 你可以删除c字符。注意:字符串只包含从 a-z 的小写字母。字符串的最大长度是50...原创 2020-04-23 18:04:26 · 128 阅读 · 0 评论 -
整数反转
7. 整数反转来源: LeetCode 题目描述7. 整数反转给出一个 32 位的有符号整数,你需要将这个整数中每位上的数字进行反转。示例 1:输入: 123输出: 321 示例 2:输入: -123输出: -321示例 3:输入: 120输出: 21注意:假设我们的环境只能存储得下 32 位的有符号整数,则其数值范围为 [−231, 231 − 1]。请...原创 2020-04-23 17:45:51 · 152 阅读 · 0 评论