原题地址:http://oj.leetcode.com/problems/minimum-depth-of-binary-tree/题意:Given
a binary tree, find its minimum depth.The minimum depth is the number of no...
分类:
编程语言 时间:
2014-05-12 21:55:15
阅读次数:
348
#include #include #include #include #include
#include #include #include #include #include using namespace std;struct
MyStruct{ string stru; int ...
分类:
其他好文 时间:
2014-05-12 21:51:09
阅读次数:
572
转载自http://blog.kgzx.net/index.php/archives/40/因为类库兼容性的关系,写实际项目时都是用 Python
2,但自己试验性的写点小东西还是喜欢用 Python 3在这记录一下在 windows 下让这两个版本共存的配置步骤在官网下载两个版本的 exe 文件并...
分类:
编程语言 时间:
2014-05-12 21:48:04
阅读次数:
354
原题地址:http://oj.leetcode.com/problems/convert-sorted-array-to-binary-search-tree/题意:将一个排序好的数组转换为一颗二叉查找树,这颗二叉查找树要求是平衡的。解题思路:由于要求二叉查找树是平衡的。所以我们可以选在数组的中间那...
分类:
编程语言 时间:
2014-05-12 21:44:57
阅读次数:
379
C# 导出Excel方法 先引用下System.IO;System.data;具体函数如下: 1
public static bool ExportCSV(DataTable dt, string fileNmae) 2 { 3 bool Ms...
分类:
其他好文 时间:
2014-05-12 21:37:43
阅读次数:
364
Action接口:public interface Action {public String
execute(String str);}Action的两个实现public class UpperAction implements Action
{private String message;pub...
分类:
编程语言 时间:
2014-05-12 21:29:36
阅读次数:
389
原题地址:http://oj.leetcode.com/problems/convert-sorted-list-to-binary-search-tree/题意:将一条排序好的链表转换为二叉查找树,二叉查找树需要平衡。解题思路:两个思路:一,可以使用快慢指针来找到中间的那个节点,然后将这个节点作为...
分类:
编程语言 时间:
2014-05-12 21:07:00
阅读次数:
405
1. Auto generation of
columns最简单的方法莫过于让DataGrid根据数据源中的字段自动生成列了:根据实体类的公共属性,
能够自动生成四种类型的数据列,对应关系如下:TextBox columns for string values;CheckBox columns fo...
分类:
其他好文 时间:
2014-05-12 19:49:17
阅读次数:
519
[分享]源代码&开发手记:SAE应用“车百科” (Python + SAE +
Bottle + Bootstrap) - Bottle - Python4cn(news, jobs)[分享]源代码&开发手记:SAE应用“车百科”
(Python + SAE + Bottle + Bootstrap...
分类:
编程语言 时间:
2014-05-12 19:40:01
阅读次数:
372
今天想使用String.Format,和平时的用法不一样。直接上代码: [Test]
public void TestMethod6() { string A = "A"; string B = "B"; ...
分类:
其他好文 时间:
2014-05-12 19:38:59
阅读次数:
296