Typical tree recursion works. The key is: ANY node can be treated as the root, since it is about edge, not about node. This simplifies things a lot.#i...
分类:
其他好文 时间:
2015-04-27 14:59:09
阅读次数:
120
DescriptionThere arenkangaroos with pockets. Each kangaroo has a size (integer number). A kangaroo can go into another kangaroo's pocket if and only i...
分类:
其他好文 时间:
2015-04-27 14:47:15
阅读次数:
128
主要讲的各个基本类型,integer,float,list,tuple,dic, list method:append,insert,extend, index tuple:no method ,can not change it,bu we can use the index to travel across dic: create a dic by using di...
分类:
编程语言 时间:
2015-04-27 13:24:59
阅读次数:
168
Stored routines (procedures and functions)can be particularly useful in certain situations:When multiple client applications are written in different ...
分类:
数据库 时间:
2015-04-27 12:42:32
阅读次数:
175
What is it?This app does all the groundwork(forms.py, urls.py, templates/appname/*.html, views.py) needed to running a app which you can create, list, edit, view a ModelForm.Usage:
Include django-scaff...
分类:
其他好文 时间:
2015-04-27 09:50:27
阅读次数:
144
解题报告 之 SOJ 3312 Stockholm Knights 最大流 网格 动态流 二分
The city of Stockholm is a chessboard whose size is N*M.
There are some Stockholm Knights in the city.
Stockholm Knights are very special Knights.
They only can move from a corner of a 3*4 grid to the oppo...
分类:
其他好文 时间:
2015-04-27 09:50:20
阅读次数:
166
JSONModel is a data model framework for iOS and OSX. It's written in Objective-C and helps you in several different ways.You can read more about its k...
分类:
Web程序 时间:
2015-04-27 00:22:53
阅读次数:
322
Binary Tree Right Side View问题:Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered...
分类:
其他好文 时间:
2015-04-27 00:00:59
阅读次数:
265
由于自己是第一次做母函数的题,感觉好难,下面的话是写给新手的题目是这样的: http://acm.hdu.edu.cn/showproblem.php?pid=1028看完题目之后呢,它的意思大概是这样的: 给一个整数N,让你求N的拆分.例如:assume N is 4, we can find.....
分类:
其他好文 时间:
2015-04-26 20:55:57
阅读次数:
121
Setting up a BroadcastReceiver that gets called unnecessarily can be a drain on system resources. The sample application registers the?BroadcastReceiver?NetworkReceiver?in?onCreate(), and it un...
分类:
其他好文 时间:
2015-04-26 18:27:56
阅读次数:
188