487-3279
Businesses like to have memorable telephone numbers. One way to make a telephone number memorableis to have it spell a memorable word or phrase. For example, yo...
分类:
其他好文 时间:
2014-08-04 21:41:34
阅读次数:
395
编辑/etc/selinux/config,找到这段:# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELin...
分类:
其他好文 时间:
2014-08-04 21:09:17
阅读次数:
296
题目:人生有很多选择,现在给你一些选择(0~n-1),和每个选择分支后面的其他选择序号,求选择总数。
分析:dp,图论。如果某状态的后续选择个数是0个则,代表死亡,统计所有到达死亡的路径条数即可。
用一个状态数组记录到达每个选择的路径数,它等于能到达它的前驱节点的路径加和。
稀疏图,使用邻接表储存。初始是节点0的路径条数为1,代表出生。
说明...
分类:
其他好文 时间:
2014-08-04 17:53:57
阅读次数:
199
By default, for a CREATE FUNCTION statement to be accepted, at least one of DETERMINISTIC, NOSQL, or READS SQL DATA must be specified explicitly.
Otherwise an error occurs:
ERROR1418 (HY000): This function has none of DETERMINISTIC, NO SQL,or READSSQL DATA...
分类:
数据库 时间:
2014-08-04 17:46:57
阅读次数:
296
BestCoder Sequence
Problem Description
Mr Potato is a coder.
Mr Potato is the BestCoder.
One night, an amazing sequence appeared in his dream. Length of this sequence is odd, the median...
分类:
其他好文 时间:
2014-08-04 17:42:57
阅读次数:
282
本来这节内容是要到后面来说的,因为最近在弄并发的问题,推荐一本书《java并发编程实战》,深入的讲解了多线程问题的。本人最近也刚好在看这本书,还不错的~
多线程的相关概念,就不用说了的,自己可以去网上查找,有一大堆关于它的讲解~
先来看看买票的程序:
package me.javen.thread.one;
public class TicketDemo {
public static ...
分类:
编程语言 时间:
2014-08-04 17:37:37
阅读次数:
243
1:回调还是返回(return) 在写代码的时候,我们经常碰到这样的场景:调用一个函数或者方法时需要返回多个值给上级调用者,如示例: void?methodA(){
???Wrap?w?=?methodB();?
???w.one;?//use
???w...
分类:
其他好文 时间:
2014-08-04 14:44:57
阅读次数:
183
DescriptionA manufacturer of sweets has started production of a new type of sweet calledrock. Rock comes in sticks composed of one-centimetre-long seg...
分类:
其他好文 时间:
2014-08-04 14:12:57
阅读次数:
218
用Eclipse在线安装的方式:Help-->Install New Software地址输入:http://m2eclipse.sonatype.org/sites/m2e/,列表中打勾勾上后点击Next安装maven插件时遇到了如下的错误:Cannot complete the install ...
分类:
其他好文 时间:
2014-08-04 13:42:47
阅读次数:
255
题目链接:UVa12726是个PDF,不好复制进来。大意:有个人要追个妹子,想加妹子QQ,但是不知道谁规定的,玩QQ的人要加好友必须先要有至少k个共同好友。共有N个人玩QQ,编号为1到N,1是男主,N是妹子。有M个初始好友关系,求男主最少要加多少个人才能有资格加妹子,或者永远加不到妹子。题解:最少加...
分类:
其他好文 时间:
2014-08-04 13:27:27
阅读次数:
338