原题地址:http://oj.leetcode.com/problems/sum-root-to-leaf-numbers/题意:Given
a binary tree containing digits from0-9only, each root-to-leaf path could
repre...
分类:
编程语言 时间:
2014-05-12 01:28:30
阅读次数:
440
1.安装 PythonPython 的版本很多,本例中选择 Python 2.7,安装这个版本的
Python 可以直接使用自带的数据库 SQLite(没听过,在这就不使用了)。你可以从Python 官网下载 Python,但你要知道在景德镇访问不了
Python 官网是很正常的(GFW赢了),所以...
分类:
编程语言 时间:
2014-05-12 01:03:53
阅读次数:
396
Sort a linked list using insertion
sort.//用到O(N)的额外空间public class Solution { public ListNode
insertionSortList(ListNode head) { if(head==nul...
分类:
其他好文 时间:
2014-05-11 23:59:09
阅读次数:
405
在C#中实现Python的切割技术前言
之前在学习Python的时候发现Python中的切割技术超好玩的,本人也是正则表达式热爱狂,平时用C#比较多,所以决定把Python中的切割技术在C#中实现,添加到个人类库中,以便日后在写C#代码的时候能舔一舔Python的味道。效果展示
...
分类:
编程语言 时间:
2014-05-11 23:16:10
阅读次数:
546
Given a linked list, reverse the nodes of a
linked listkat a time and return its modified list.If the number of nodes is not
a multiple ofkthen left-o...
分类:
其他好文 时间:
2014-05-11 18:15:52
阅读次数:
300
题目链接刷刷Python基本功...列表解析附上代码:1 x = int(input())2 y =
int(input())3 z = int(input())4 n = int(input())5 print [[i, j, k] for i in
xrange(x+1) for j in xr...
分类:
其他好文 时间:
2014-05-11 18:05:07
阅读次数:
276
刚刚接触Python 想做点什么 听说Python 在网络方便很厉害 后来总结如下:
第一:发现公司都固定IP 每次新来同事都要猜一个没有人用的IP 很费劲 第二:我们公司有的IP可以上QQ 有的不可以所以我每次也要换IP O(∩_∩)O
所以想到用Python 做一个批量...
分类:
其他好文 时间:
2014-05-11 17:58:20
阅读次数:
326
/// /// 返回insert后的主键值 /// /// /// /// public static
int ExecuteSql(string SQLString, List para) ...
分类:
数据库 时间:
2014-05-11 16:07:50
阅读次数:
400
Reverse a linked list from positionmton. Do it
in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m=
2 andn= 4,return1->4->3->2->5->NULL.No...
分类:
其他好文 时间:
2014-05-11 16:03:43
阅读次数:
327
模块模块式Python组织代码的基本方式脚本:Python的脚本都是用扩展名py的文本文件保存的,一个脚本可以单独运行,也可以导入到另一个脚本中运行。模块:当脚本被导入运行时,成为模块(module)
模块名与脚本的文件名相同 导入test.py脚本:import test区分直...
分类:
编程语言 时间:
2014-05-11 15:35:15
阅读次数:
351