
LeetCode
i_idleness
这个作者很懒,什么都没留下…
展开
-
LeetCode 30
题目描述 给定一个字符串 s 和一些长度相同的单词 words。在 s 中找出可以恰好串联 words 中所有单词的子串的起始位置。 注意子串要与 words 中的单词完全匹配,中间不能有其他字符,但不需要考虑 words 中单词串联的顺序。 示例 输入: s = “barfoothefoobarman”, words = [“foo”,”bar”] ...原创 2018-09-12 19:45:04 · 440 阅读 · 0 评论 -
LeetCode 65 有效数字
题目描述解题思路2e10不是十六进制数,是指数如果含有e,以e为分隔符,前面是浮点数,后面是整数.1、1.均正确import reclass Solution: def isInt(self,s): if not len(s): return False if s[0]=='+'or s[0]=='-': ...原创 2018-09-25 20:54:37 · 312 阅读 · 0 评论