本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/42876657
Given a binary tree, return the inorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,3,2].
Note: Re...
分类:
其他好文 时间:
2015-01-19 21:11:04
阅读次数:
184
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/42876699
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,2,3].
Note: Re...
分类:
其他好文 时间:
2015-01-19 21:09:52
阅读次数:
145
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/42876769
Given a binary tree, return the postorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [3,2,1].
Note: ...
分类:
其他好文 时间:
2015-01-19 21:09:14
阅读次数:
152
为什么要批量插入要插入10000条数据,如果不批量插入的话,那么我们执行的sql语句将是10000条insertinsert into member (group_id, user_id, role, extend) values (101, 100, 3, NULL)insert into mem...
分类:
Web程序 时间:
2015-01-19 19:02:05
阅读次数:
186
所谓的主题切换,就是能够根据不同的设定,呈现不同风格的界面给用户,也就是所谓的换肤。1、将主题包(图片与配置)存到SD卡上(可通过下载或手动放入指定目录),在代码里强制从本地文件创建图片与配置文字大小、颜色等信息。2、Android平台独有的主题设置功能,在values文件夹中定义若干种style,...
分类:
移动开发 时间:
2015-01-19 18:43:26
阅读次数:
288
python把文件中的邮箱分类保存到相应的文件里面(测试数据100W数据时间10秒)#coding:utf-8
importtime
importlinecache
defreadfile(file):
#读取数据
list_dict={}
file_data=[x.replace(‘\n‘,‘‘)forxinlinecache.getlines(file)if‘@‘inx]
#把后缀名组成字典中的keys,按照..
分类:
编程语言 时间:
2015-01-19 06:57:53
阅读次数:
202
Binary Tree Zigzag Level Order TraversalGiven a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then...
分类:
其他好文 时间:
2015-01-18 18:21:13
阅读次数:
151
第一种方法:Extract values to Points工具,这个网上的资料比较多。就不介绍了。其实是因为我的电脑没法执行这个工具,老是出错,但是不知道原因是什么。想实现这个功能就只好找其他的方法了。后来经过老师的指点,发现3D分析里面有些工具挺好用的,特意记录下来。第二种方法:Interpol...
分类:
其他好文 时间:
2015-01-18 15:38:02
阅读次数:
393
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1]. 1...
分类:
其他好文 时间:
2015-01-18 13:02:59
阅读次数:
166
标题:Binary Tree Level Order Traversal II通过率:30.5%难度:简单Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from lef...
分类:
其他好文 时间:
2015-01-18 13:02:13
阅读次数:
151