pannyvan

导航

随笔分类 -  算法和数据结构

二叉排序树相关操作(C++)
摘要:待续。。。。 阅读全文

posted @ 2015-04-07 17:43 pannyvan 阅读(182) 评论(0) 推荐(0)

动态规划--求最大连续子数组的和(Python实现)&求解最大连续乘积字串(Python实现)
摘要:def MaxSum(self,array,n): sum=array[0] result=array[0] for i in range(0,n): if sumresult: result=sum end=i ... 阅读全文

posted @ 2015-04-07 17:29 pannyvan 阅读(2675) 评论(0) 推荐(0)

计算日期差(Python实现)
摘要:class Solution: def Days(self,year,month,day): if (year%4==0 and year%100!=0) or year%400==0: monthlist=[0,31,29,31,30,31,30,31,... 阅读全文

posted @ 2015-04-07 16:43 pannyvan 阅读(365) 评论(0) 推荐(0)