
毕设咋办啊
141.Linked List Cycle
1 |
def hasCycle(self, head): |
137.Single Number II
1 |
one, two = 0, 0 |
674.Longest Continuous Increasing Subsequence
1 |
if not nums: return 0 |
961.N-Repeated Element in Size 2N Array
1 |
a = [] |
448.Find All Numbers Disappeared in an Array
标记出现了的数字为负数
1 |
for i in xrange(len(nums)): |
257.Binary Tree Paths
1 |
def binaryTreePaths(self, root): |
160.Intersection of Two Linked Lists
1 |
curA, curB = headA, headB |
162.Find Peak Element
1 |
l = 0 |
83.Remove Duplicates from Sorted List
1 |
if head == None: |
539.Minimum Time Difference
1 |
def minutes(p): |
506.Relative Ranks
1 |
sort = sorted(nums)[::-1] |
402.Remove K Digits
1 |
def shrink(num): |
404.Sum of Left Leaves
1 |
self.sum = 0 |




近期评论