Number Sequence
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 34582
Accepted: 9929
Description
A single positive integer i is given. Write a program to fin...
分类:
其他好文 时间:
2015-01-22 15:31:18
阅读次数:
109
Is a loop ? Question descrip as follows :
Assume that wehave a head pointer to a link-list. Also assumethat we know the list is single-linked. Can you come up an algorithm to checkwhether this link list includes a loop by using O(n) time and O(1) ...
分类:
其他好文 时间:
2015-01-22 13:28:16
阅读次数:
229
DescriptionIgnatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words an...
分类:
其他好文 时间:
2015-01-21 21:59:44
阅读次数:
192
这篇博客我们还是继续讲如何使用,其他的我自己还需要一些时间来消化。这次因为项目的需要,将登录从shiro中抽出来交给cas来验证。Shiro,只负责权限的验证。shiro在1.2版本之后加入了对cas的支持。我们先从cas入手……
SSO的概念
单点登录( Single Sign-On , 简称 SSO )是目前比较流行的服务于企业业务整合的解决方案之一, SSO就是一次登录,就可...
分类:
Web程序 时间:
2015-01-21 20:06:11
阅读次数:
265
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching should cover t...
分类:
其他好文 时间:
2015-01-21 15:21:59
阅读次数:
184
iOS 7中默认的导航栏在开始定制之前,我们先来看看iOS 7中默认导航栏的外观。通过Xcode用Single View Controller模板创建一个工程。然后将view controller嵌入到一个navigation controller中。如果你不想从头开始,那么也可以在这里下载到这个示...
分类:
移动开发 时间:
2015-01-21 13:20:00
阅读次数:
149
前言这几天,第三轮全站优化结束,测试项目在2G首屏载入速度取得了一些优化成绩,对比下来有10s左右的差距:这次优化工作结束后,已经是第三次大规模折腾公司框架了,这里将一些自己知道的移动端的建议提出来分享下,希望对各位有用文中有误请您提出,以免误人自误技术选型单页or多页sap(single page...
分类:
移动开发 时间:
2015-01-21 08:56:49
阅读次数:
300
mysqldump全量备份每周执行mysqldump-uroot-p--flush-logs--single-transaction--all-database>/home/1.sql增量备份当需要增量备份的时候mysql>flushlogsmysql>showmasterstatus;如显示mysql-bin.000005备份mysql-bin.000004即可还原时,先还原全量备份然后还原增量,..
分类:
数据库 时间:
2015-01-21 06:42:27
阅读次数:
179
http://blog.csdn.net/linwei_1029/article/details/18408363 1. 当一个bean的作用域设置为singleton, 那么Spring IOC容器中只会存在一个共享的bean实例,并且所有对bean的请求,只要id与该bean定义相匹配,则只会返...
分类:
编程语言 时间:
2015-01-20 15:37:54
阅读次数:
119
class single{ //设置成受保护的属性 protected static $ins = null; public static function getIns(){ if(self::$ins == null){ s...
分类:
Web程序 时间:
2015-01-19 22:31:29
阅读次数:
164