Problem Description
Bean-eating is an interesting game, everyone owns an M*N matrix, which is filled with different qualities beans. Meantime, there is only one bean in any 1*1 grid. Now you want t...
分类:
其他好文 时间:
2014-07-30 20:46:54
阅读次数:
262
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example: Given the below binary tree, 1 ...
分类:
其他好文 时间:
2014-07-30 20:33:34
阅读次数:
193
Problem Description
Recently, scientists find that there is love between any of two people. For example, between A and B, if A don’t love B, then B must love A, vice versa. And there is no possibilit...
分类:
其他好文 时间:
2014-07-30 17:38:04
阅读次数:
287
问题描述:
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.
Return a deep copy of the list.
解题思路:
将1->2->3->4->NUL...
分类:
其他好文 时间:
2014-07-30 10:07:54
阅读次数:
259
修改文件 /system/core/Router.php 的方法 _parse_route()
/**
* Parse Routes
*
* This function matches any routes that may exist in
* the config/routes.php file against the URI to
* determine if th...
分类:
其他好文 时间:
2014-07-29 18:05:12
阅读次数:
211
setenforce0serviceiptablesstop关闭防火墙1.安装dns软件包yuminstallbind2.配置文件全局配置vi/etc/named.conflisten-onport53{192.168.80.20;};网卡IPdirectory"/var/named";区域数据文件存放位置allow-query{any;};允许使用本DNS网段区域配置(1)正向区域(域名解析成IP)vi/..
分类:
系统相关 时间:
2014-07-29 15:40:19
阅读次数:
390
Description
Gigel has a strange "balance" and he wants to poise it. Actually, the device is different from any other ordinary balance.
It orders two arms of negligible weight and each arm's length...
分类:
其他好文 时间:
2014-07-28 16:14:46
阅读次数:
244
Original link:http://build.sharpdevelop.net/ccnet/doc/CCNET/Configuration%20Preprocessor.htmlFor example: What does "cb:include" mean?Is there any ...
分类:
Web程序 时间:
2014-07-28 15:33:43
阅读次数:
183
Greg A. writes,I enjoyed your post on how to not sort by average rating. I was wondering if you have any experience with sorting based on average vote...
分类:
其他好文 时间:
2014-07-28 15:13:13
阅读次数:
261
heap block 引发的思考
问题背景:
Implicit Free Lists
Any practical allocator needs some data structure that allows it to distinguish block boundaries and to distinguish between allo...
分类:
其他好文 时间:
2014-07-27 23:38:29
阅读次数:
452