摘要:
8. 字符串转整数 (atoi) 描述 实现 atoi,将字符串转为整数。 在找到第一个非空字符之前,需要移除掉字符串中的空格字符。如果第一个非空字符是正号或负号,选取该符号,并将其与后面尽可能多的连续的数字组合起来,这部分字符即为整数的值。如果第一个非空字符是数字,则直接将其与之后连续的数字字符组 阅读全文
posted @ 2018-09-10 16:38
banshaohuan
阅读(120)
评论(0)
推荐(0)
摘要:
描述 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Input: "babad" Outpu 阅读全文
posted @ 2018-09-10 16:37
banshaohuan
阅读(101)
评论(0)
推荐(0)

浙公网安备 33010602011771号