Here is a list of books which I have read and feel it is worth recommending to friends who are interested in computer science.Machine LearningPattern ...
分类:
其他好文 时间:
2015-01-16 18:31:46
阅读次数:
221
可以用willset和didset监视器来声明一个存储型变量或属性。varnum=0 { willSet(setter name) { //do something here } didSet(setter name) { //do something here }...
分类:
其他好文 时间:
2015-01-16 16:18:06
阅读次数:
169
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
click to show spoilers.
Have you thought about this?
Here are some good questions to ask before c...
分类:
其他好文 时间:
2015-01-15 22:06:26
阅读次数:
132
This command is awesome, we can use it conveniently to check the network status.
Here some common examples:
1) netstat display the current IP port status.
2) netstat -nr display the rou...
分类:
Web程序 时间:
2015-01-14 22:53:11
阅读次数:
337
Given a string S, find the longest palindromic substring in S.
Note:
This is Part II of the article: Longest
Palindromic Substring. Here, we describe an algorithm (Manacher’s algorithm) which...
分类:
其他好文 时间:
2015-01-14 15:40:50
阅读次数:
326
配置一个小软件居然研究了好长时间。无语了!
要安装静态的软件当然是要先有安装文件。没有?!那你就去下载一个呗。Click Here~
有两种安装文件各有不同的方法:
一、*.tar文件的安装方法
方法: 1、找到相应的软件包,比如soft.tar.gz,下载到本机某个目录;
2、打开一个终端,su -成root用户;...
分类:
系统相关 时间:
2015-01-13 15:59:44
阅读次数:
286
springmvc的配置就不详细说了,这里就把关键地方的代码贴出来
code.jsp
Insert title here
function refresh(obj) {
var w = "${w}";
obj.src = w + "/im.html?" + Math.random(); //加个Math.random();为了不让浏览器有缓存...
分类:
编程语言 时间:
2015-01-13 14:28:12
阅读次数:
189
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 integers ...
分类:
其他好文 时间:
2015-01-13 09:01:28
阅读次数:
117
DescriptionBob and Alice play a game, and Bob will play first.Here is the rule of the game:1) There are N stones at first;2) Bob and Alice take turns ...
分类:
其他好文 时间:
2015-01-13 01:25:33
阅读次数:
2234
Calculate the Distance Between Two Points in PHPThere are a lot of applications where it is useful to know the distance between two coordinates. Here,...
分类:
Web程序 时间:
2015-01-12 15:59:17
阅读次数:
267