随笔分类 -  leetcode

上一页 1 ··· 4 5 6 7 8
leetcode刷题记录
摘要:经过一早上的两个多小时才完成,,, 代码如下: 1 class Solution: 2 def plusOne(self, digits): 3 index=[] 4 for i in range(len(digits)): 5 if digits[i]==9: 6 index.append(i) 阅读全文
posted @ 2019-09-18 15:07 欣姐姐 阅读(275) 评论(0) 推荐(0)
摘要:这个挺简单的,只能独立完成这样程度的题还是很让人沮丧。 虽然完成了,效果并不好,还得再思考精进才行 class Solution: def __init__(self): return None def removeElement(self, nums, val) -> int: while val 阅读全文
posted @ 2019-09-17 17:20 欣姐姐 阅读(155) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8