background: -moz-linear-gradient(top, #8fa1ff, #3757fa); /* Firefox */background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ff4f0...
分类:
Web程序 时间:
2014-07-01 17:55:21
阅读次数:
282
https://oj.leetcode.com/problems/path-sum//** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNod...
分类:
编程语言 时间:
2014-07-01 13:09:20
阅读次数:
198
题目:Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,...
分类:
其他好文 时间:
2014-07-01 12:44:09
阅读次数:
199
题目:Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For ...
分类:
其他好文 时间:
2014-07-01 12:26:07
阅读次数:
215
在学习数据库的时候选择的是一本翻译书,有些概念没有搞清楚,现在总结一下。内联接语句select * FROM table1 one INNER JOIN table2 two ON one.table1_id=two.table2_id;返回的结果是两个表中都存在的匹配数据左联接语句SELECT *...
分类:
数据库 时间:
2014-07-01 11:54:23
阅读次数:
251
字符串的Split()和Join()方法提供了拆分字符串的功能。
Split()方法可以获得从字符串拆分到数组的值,
Join()方法可以从数组创建一个带分隔符的字符串。同时支持自定义格式和其他程序进行信息交换
Replace() 替换功能。
具体参数参考实际方法。
此文仅为记录...
分类:
其他好文 时间:
2014-07-01 07:46:09
阅读次数:
145
Join方法,其实简单的说就是阻止主线程运行,知道子线程完成后才继续执行主线程。注意这里只是阻止主线程。
下面是个例子:
myThread.Join()
Console.WriteLine("Child joined");
运行结果是:先显示myThread线程内的内容,然后显示Child joined。
从这里可以看到,当调用Join方法后,Console语句需要等待myThread这...
分类:
编程语言 时间:
2014-07-01 07:32:38
阅读次数:
225
直接上代码
ZeroClipboard Test
.line {
margin-bottom: 20px;
}
/* 复制提示 */
.copy-tips {
position: fixed;
z-index: 9999;
bottom: 50%;
left: 50%;
margin: 0 0 -20px -80px;
background-color: rgba(0,...
分类:
其他好文 时间:
2014-07-01 07:04:53
阅读次数:
245
Android界面的坐标是以左上角为起始点,平行的为X轴,垂直的为Y轴,数值都是递增的。如下图所示:
Android的Rect类是形成一个矩形的区域,区域在Android整个界面中的位置由left,top,right,bottom数值来控制,下面的图介绍了这四个值的意思。...
分类:
移动开发 时间:
2014-07-01 07:00:24
阅读次数:
418
Consecutive Blocks
Time Limit: 2 Seconds
Memory Limit: 65536 KB
There are N (1 ≤ N ≤ 105) colored blocks (numbered 1 to
N from left to right) which are lined up in a row. And the i-th b...
分类:
其他好文 时间:
2014-07-01 06:51:52
阅读次数:
218