Description
Christmas is coming to KCM city. Suby the loyal civilian in KCM city is preparing a big neat Christmas tree. The simple structure of the tree is shown in right picture.
The tree can ...
分类:
其他好文 时间:
2014-07-26 15:01:50
阅读次数:
300
此方法配置好,在可以在unity直接发布到手机上,并可以实时调试。1、配置eclipse环境:首先在官网下载安装包:http://developer.android.com/sdk/index.html,点击这个按钮开始下载进入下一页,选择对应你系统的版本,继续下载。32和64位版本千万不能选错了,...
分类:
移动开发 时间:
2014-07-26 14:32:41
阅读次数:
496
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example: Given binary tree {3...
分类:
其他好文 时间:
2014-07-26 14:03:16
阅读次数:
174
375.Query on a tree 【QTREE】 有两个操作: (1)修改第i条边的边权 (2)询问a到b路径上的边权最大值。 树链剖分入门题。树链剖分+线段树维护最大值。修改/查询均为O(log^2)。 很懒,没有写。913.Query on a tree II 【QTREE2...
分类:
其他好文 时间:
2014-07-26 13:53:45
阅读次数:
569
题目:Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.题解:这道题可以应用之前解过的Largetst Recta....
分类:
编程语言 时间:
2014-07-26 09:55:57
阅读次数:
301
CentOS下安装sudoyuminstallMySQL-python可以参考http://www.mikusa.com/python-mysql-docs/index.html获取更多信息MySQL-python为Python提供MySQL驱动程序,主要包括两个部件,_mysql和MySQLdb连接数据库In[56]:importMySQLdb
In[57]:db=MySQLdb.connect(host=‘127.0.0.1‘,us..
分类:
数据库 时间:
2014-07-26 03:23:57
阅读次数:
261
去掉url中的index.php,让url彻底mvc。1.httpd.conf配置文件中加载了mod_rewrite.so模块//在APACHE里面去配置#LoadModulerewrite_modulemodules/mod_rewrite.so把前面的警号去掉2.AllowOverrideNone将None改为All//在APACHE里面去配置(注意其他地方的AllowOverride也统统设置为..
分类:
Web程序 时间:
2014-07-26 03:20:07
阅读次数:
225
字符串相同 代码(Java)本文地址: http://blog.csdn.net/caroline_wendy题目: 实现一个算法, 确定一个字符串的所有字符是否全都不同. 假使不允许使用额外的数据结构, 又该如何处理.解法1:使用数据结构, 设置boolean数组, 把值(value)作为数组的索引(index), 判断数组是否重复.解法2:不使用数据结构, 可以通过位(bit)进行判断, 把每...
分类:
编程语言 时间:
2014-07-26 03:02:06
阅读次数:
259
在封装Javax Swing的Tree对象时,需要为其每个节点设置不同的图标。故封装了一个公共方法:
{CSDN:CODE:435261}
使用方法:
jTree1.setCellRenderer(new TreeNodeRender(casesIcon));
需要注意的是caseIcon为一个List对象.
示例如图,传入了3个ImageIcon对象,按...
分类:
其他好文 时间:
2014-07-26 02:24:26
阅读次数:
324
首先来说一下api文档使用,api这个词对有一定开发经验的java编程人员来说是很喜爱的~
java当然也提供了api开发文档,下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html 找到下面的:
下载自己喜爱的版本即可,解压,点击~/jdk-7u60-apidocs/api/index.html就...
分类:
编程语言 时间:
2014-07-26 02:23:16
阅读次数:
252