本文来源: http://www.zhangxinxu.com/study/201312/js-parabola-shopping.htmlparabola.js/*! * by zhangxinxu(.com) 2012-12-27 * you can visit http://www.zhang...
分类:
Web程序 时间:
2015-12-04 20:54:33
阅读次数:
266
//图的建立的实现->邻结矩阵和邻结表两种表示方法#include #include //#define _OJ_int visit[100];typedef struct Lnode{ int data; //邻结点的位置下标 // int wei...
分类:
其他好文 时间:
2015-12-04 20:50:53
阅读次数:
172
DescriptionAfter coding so many days,Mr Acmer wants to have a good rest.So travelling is the best choice!He has decided to visit n cities(he insists o...
分类:
其他好文 时间:
2015-11-29 19:31:48
阅读次数:
131
A. Patrick and ShoppingToday Patrick waits for a visit from his friend Spongebob. To prepare for the visit, Patrick needs to buy some goodies in two s...
分类:
其他好文 时间:
2015-11-21 18:31:29
阅读次数:
199
设辅助数组b,定义b[i]表示以a[i]为结尾的最长递增子数列的长度。则:转移方程:b[1]=1;b[i]=max{b[k]+1}; 1=#include#define MAX 100using namespace std;int main(){ int a[MAX],b[MAX],visit[M....
分类:
其他好文 时间:
2015-11-14 19:11:25
阅读次数:
237
今天遇到一个问题,对于UIListView,在初始化(pushBackCustomItem)之后,如果立即操作的话,由于原件并未重新布局,因此会导致一些奇奇怪怪的问题。查看代码之后,发现doLayout和forceDoLayout可以实现重新布局,而调用者是visit函数。于是乎,在初始化ListView之后,立即使用v..
分类:
其他好文 时间:
2015-11-11 22:17:44
阅读次数:
255
题目链接:http://poj.org/problem?id=1028题意: 模拟浏览器的前进/后退/访问/退出 的四个操作. 输出当前访问的URL或者Ignore(如果不能前进/后退).分析: 用一个vector加上当前位置索引index即可. 当进行visit一个新的URL时, 应该基于当前UR...
分类:
Web程序 时间:
2015-10-17 11:58:30
阅读次数:
148
原文 At a village fair, I decided to visit a fortune-teller called Madam Bellinsky. I went into her tent and she told me to sit down. After I had given her some money, she looked into a crystal bal...
分类:
其他好文 时间:
2015-10-10 15:42:58
阅读次数:
263
一,二分图匹配:我的理解是所谓最大匹配其实就是每一次试着能否将一个点弄进去,然后试着能够将匹配边和未匹配边反过来,如果能的话是好的,但是如果不能的话这个节点也不能再选了,因为如果选的话那么原来这个节点所对应的左边的点仍然无法找到增广路。所以visit【i】不用将他还原。除了这个地方卡了有点久其他的不...
分类:
其他好文 时间:
2015-10-01 16:27:34
阅读次数:
179
Postorder: first, visit left child, then, parent, last, is to visit right child.The postorder traversal result of above tree is {4,6,5,2,3,1}.Key diff...
分类:
其他好文 时间:
2015-10-01 06:59:04
阅读次数:
195