DataTable tblDatas = new DataTable("Datas");
tblDatas.Columns.Add("ID", Type.GetType("System.Int32"));
tblDatas.Columns[0].AutoIncremen...
分类:
其他好文 时间:
2014-05-26 15:20:10
阅读次数:
239
在前一篇随笔中我曾分享如何[为Orchard特定主题添加独立代码文件](http://www.cnblogs.com/sunwangji/p/how-to-add-c-sharp-code-to-a-new-orchard-cms-theme.html),
今儿延续如何把对应代码应用到Views上。...
分类:
其他好文 时间:
2014-05-26 14:40:40
阅读次数:
383
To clone the master development repository, install
git, and run:git clone git://github.com/torvalds/linux.git v4l-dvb cd v4l-dvb
git remote add linux...
分类:
其他好文 时间:
2014-05-26 14:13:43
阅读次数:
338
原题地址:https://oj.leetcode.com/problems/recover-binary-search-tree/题意:Two
elements of a binary search tree (BST) are swapped by mistake.Recover the
tree...
分类:
编程语言 时间:
2014-05-26 13:25:43
阅读次数:
261
基本上一次过,要注意边界条件的问题:如果在recursion里有两个参数int begin, end,
递归写作recursion(num, mid+1, end), 因为+号的原因,递归中是会出现begin > end
的情况的,所以考虑初始条件的时候应该要考虑充分。 1 /** 2 * Def....
分类:
其他好文 时间:
2014-05-26 12:12:49
阅读次数:
257
Given a strings1, we may represent it as a
binary tree by partitioning it to two non-empty substrings recursively.Below is
one possible representation...
分类:
其他好文 时间:
2014-05-26 11:24:36
阅读次数:
214
使用步骤:1.双击下载下来的Versions,点击工具栏上的"Bookmarks"-->"Add
Responsitory
Bookmark",出现如下图所示界面:2.在“Location”中输入svn地址,“Name”会自动填充;输入“Username”和“Password”。3.点击“Creat...
分类:
其他好文 时间:
2014-05-26 11:17:51
阅读次数:
352
原题地址:https://oj.leetcode.com/problems/validate-binary-search-tree/题意:检测一颗二叉树是否是二叉查找树。解题思路:看到二叉树我们首先想到需要进行递归来解决问题。这道题递归的比较巧妙。让我们来看下面一棵树:
...
分类:
编程语言 时间:
2014-05-26 10:48:19
阅读次数:
291
原题地址:https://oj.leetcode.com/problems/same-tree/题意:判断两棵树是否是同一棵树。解题思路:这题比较简单。用递归来做。首先判断两个根节点的值是否相同,如果相同,递归判断根的左右子树。代码:#
Definition for a binary tree n....
分类:
编程语言 时间:
2014-05-26 10:30:17
阅读次数:
289
原题地址:https://oj.leetcode.com/problems/symmetric-tree/题意:判断二叉树是否为对称的。Given
a binary tree, check whether it is a mirror of itself (ie, symmetric around ...
分类:
编程语言 时间:
2014-05-26 10:18:52
阅读次数:
293