本文整理了10款优秀的文件管理插件,这些插件基于jQuery、AJAX和PHP,你可以轻松进行定制并加入到自己的项目中。通过它们,你和用户可以通过浏览器来预览、上传、修改文件和文件夹。 1. elFinder基于web的简单文件管理器。源码 + 演示2. jQuery File Tree一个基于jQ...
分类:
其他好文 时间:
2014-07-09 22:41:07
阅读次数:
221
1. 层序构建和先序遍历: 1 public class Tree { 2 public Tree left; 3 public Tree right; 4 public int val; 5 6 public Tree() { 7 8 } 9 10 ...
分类:
其他好文 时间:
2014-07-09 21:16:15
阅读次数:
150
语言:Python描述:使用递归实现 1 # Definition for a binary tree node 2 # class TreeNode: 3 # def __init__(self, x): 4 # self.val = x 5 # self...
分类:
其他好文 时间:
2014-07-09 20:46:34
阅读次数:
168
题目
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent
a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find ...
分类:
其他好文 时间:
2014-07-08 21:43:08
阅读次数:
219
http://poj.org/problem?id=2513
最初看到 第一感觉---map 一看250000的数据量 果断放弃
然后记得以前看过,trie代替map,尤其当数据量特别大的时候
学到了:
1、Trie代替map的思想,可以在单词结尾的tree[i][tk] 这个i作为字符串对应的int值 ,当然这个int值也可以用于建立并查集
2、接上,通过并查集判断,所有的点在同一...
分类:
移动开发 时间:
2014-07-08 19:09:11
阅读次数:
204
地形元素
一般情况下,为了使游戏更具有美观性,会在游戏地形上放置很多的元素,这些元素是与地形分开的。主要包括:树木,草地,自定义网格模型。
树元素
首先导入系统提供的树木标准资源包,在project视图中,点击鼠标右键,然后从菜单中选择import-----tree creator。接着在地形菜单里点击第五个按钮,添加树模型。然后点击edit trees按钮,将弹出如下列表:...
分类:
其他好文 时间:
2014-07-08 18:24:33
阅读次数:
266
下面以一个项目简单介绍easyui的使用,主要包括以下组件 布局面板 - layout 可伸缩面板 - accordion选项卡 - tabs控制面板 - panel 窗口 - window 对话框 - dialog 消息窗口 - messager数据表格 - datagrid 分页 - pagination 树型菜单 - tree 等等...可先下载项目源码 对各个组件有个大致了解 xxx...
分类:
其他好文 时间:
2014-07-08 13:36:04
阅读次数:
249
原题: ZOJ 3686http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3686这题本来是一个比较水的线段树,结果一个mark坑了我好几个小时。。哎。太弱。先DFS这棵树,树形结构转换为线性结构,每个节点有一个第一次遍历的时间...
分类:
其他好文 时间:
2014-07-08 00:46:56
阅读次数:
295
Description
Consider an infinite full binary search tree (see the figure below), the numbers in the nodes are 1, 2, 3, .... In a subtree whose root node is X, we can get the minimum number in this ...
分类:
其他好文 时间:
2014-07-06 11:36:14
阅读次数:
284
(1)View:最基本的UI组件,表示屏幕上的一个矩形区域。
(2)Window: 表示一个窗口,不一定有屏幕那么大,可以很大也可以很小;
它包含一个View tree和窗口的layout 参数。
View tree的root View可以通过getDecorView得到。还可以设置Win...
分类:
移动开发 时间:
2014-07-06 10:00:59
阅读次数:
295