上一页 1 2 3 4 5 6 7 ··· 28 下一页
摘要: class Solution: # @param {integer} n # @return {integer} def numTrees(self, n): nums=[0]*(n+1) nums[0]=1 for i in range(1, n+1): for j in range(1, i+... 阅读全文
posted @ 2015-08-21 14:48 曾可爱 阅读(145) 评论(0) 推荐(0) 编辑
摘要: # Definition for singly-linked list.# class ListNode:# def __init__(self, x):# self.val = x# self.next = Noneclass Solution: # ... 阅读全文
posted @ 2015-08-13 21:21 曾可爱 阅读(247) 评论(0) 推荐(0) 编辑
摘要: Problem Difinition:Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the arr... 阅读全文
posted @ 2015-08-04 22:49 曾可爱 阅读(133) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 28 下一页