题目链接:click here
Examining the Rooms
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1146 Accepted Submission(s): 689
Problem Descr...
分类:
其他好文 时间:
2015-02-03 23:05:37
阅读次数:
219
摘自 stackoverflow回答Here is the procedure to reset password of root user.1) Stop mysql (Kill mysql process or run following command)sudo /usr/local/mysq...
分类:
数据库 时间:
2015-02-03 22:56:45
阅读次数:
252
链接:click here
题意:Network flow is a well-known difficult problem for ACMers. Given a graph, your task is to find out the maximum flow for the weighted directed graph.
翻译:网络流量是一个众所周知的难题ACMers。给定一个图,...
分类:
其他好文 时间:
2015-02-03 19:39:49
阅读次数:
245
今天用CDHtmlDialog创建了一个简单的浏览器程序,遇到了一个问题,记录一下。
问题描述:当超链接的打开方式为_blank的时候,会弹出一个服务器忙的对话框,如图:
网页内容
百度
TODO: Place controls here.
确定 取消
点击百度链接,出现以下对话框:
如果网页代码中的a标签的打开方式不是_blank则能正常进行...
分类:
Web程序 时间:
2015-02-03 19:36:22
阅读次数:
198
问题描述:public void save(BaseEntity baseEntity) { Session session = null; try { session = currentSession(); session.s...
分类:
Web程序 时间:
2015-02-03 16:33:33
阅读次数:
145
Railway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queue…
The Lunar New Year was approaching, but unluckily the Little Cat still had schedules going here and there. Now, he had to travel by tra...
分类:
其他好文 时间:
2015-02-03 09:37:13
阅读次数:
222
【题目】
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
Here, we will use the...
分类:
其他好文 时间:
2015-02-03 09:29:30
阅读次数:
118
MongoDB的shell操作数据,用到create、read、update、delete操作。1、创建insert函数用于创建一个文档到集合里面。例,创建局部变量post,内容是代表文档的JavaScript对象,里面会有title、content和date几个键。>post={"title":"MyBlogPost",..."content":"Here‘smyblogpos..
分类:
数据库 时间:
2015-02-02 16:09:26
阅读次数:
181
链接:click here
题意:对于一个包含n>0个元素的整数序列,如果序列中相邻元素之差的绝对值取边1到n-1的所有值,那么这个序列就叫做Jolly Jumper序列,
思路:水题模拟~~,不过注意*,因为不小心,wrong了几遍。
代码:
#include
#include
#include
#include
#include
#include
#include
u...
分类:
其他好文 时间:
2015-02-02 15:52:24
阅读次数:
131
链接:click here
题意:
什么是红黑树呢?顾名思义,跟枣树类似,红黑树是一种叶子是黑色果子是红色的树。。。
当然,这个是我说的。。。
《算法导论》上可不是这么说的:
如果一个二叉查找树满足下面的红黑性质,那么则为一个红黑树。
1)每个节点或是红的,或者是黑的。
2)每个叶子节点(NIL)是黑色的
3)如果一个节点是红色的,那么他的两个儿子都是黑的。
4)根...
分类:
其他好文 时间:
2015-02-02 14:13:16
阅读次数:
193