DescriptionThe police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and Ga...
分类:
其他好文 时间:
2015-07-17 22:16:19
阅读次数:
102
Note: detailed procedure with full pictures is at the last paragraph. Where to buy GM TECH2? The knock off GM tech2 can cost $340 to $290, usually, th...
分类:
数据库 时间:
2015-07-17 20:27:00
阅读次数:
122
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree and sum
...
分类:
其他好文 时间:
2015-07-17 18:56:10
阅读次数:
108
void
setOutsideTouchable(boolean touchable)
Controls whether the pop-up will be informed of touch events outside of its window.
void
setFocusable(boolean focusable)
...
DescriptionFor the daily milking, Farmer John'sNcows (1 ≤N≤ 50,000) always line up in the same order. One day Farmer John decides to organize a game o...
分类:
其他好文 时间:
2015-07-17 18:35:31
阅读次数:
86
题目链接:http://codeforces.com/problemset/problem/554/B题目大意: 奥哈马清理一间被分成n*n格的房间,每格使用数字‘1’和‘0’来表示状态,单格用1表示,则表明是干净的,用0表示则是脏的。清理时,奥哈马只能一整列的打扫,而且被打扫的单格如果是干净(1)...
分类:
其他好文 时间:
2015-07-17 18:30:12
阅读次数:
90
Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?分析:题意为判断单链表是否为回文的。思路:首先想到的是 遍历一次单链表,...
分类:
其他好文 时间:
2015-07-17 18:19:53
阅读次数:
110
http://poj.org/problem?id=1564dfs三个参数 x,sum,k, x表示开始的坐标,sum表示当前的和,k表示这是一组答案中的第几个数,是用来记录路径的...调了好久没写出来...我写完之后答案会有重复.一开始想开一个boolean数组记录,这样第一组样例的3+1就只会....
分类:
其他好文 时间:
2015-07-17 15:51:55
阅读次数:
82
//屏幕滚动条 时间间隔:200ms 方向:向右Welcome!marquee中的属性: direction 表示滚动的方向,值可以是left,right,up,down,默认为left behavior 表示滚动的方式,值可以是scroll(连续滚动)slide(滑动一次)alternate...
分类:
Web程序 时间:
2015-07-17 13:28:20
阅读次数:
172
题目:
Follow up for "Unique Paths":
Now consider if some obstacles are added to the grids. How many unique paths would there be?
An obstacle and empty space is marked as 1 and 0 respectively
...
分类:
编程语言 时间:
2015-07-17 12:14:19
阅读次数:
101