Compare two version numbers version1 and version2.
If version1 > version2 return 1, if version1 version2 return -1, otherwise return
0.
You may assume that the version strings are non-empty and c...
分类:
其他好文 时间:
2015-03-31 10:51:17
阅读次数:
104
这节课我们主要学习了class和object,也稍微介绍了一些继承和多态。首先我按照课堂上讲的写了deep copy 算是this的引入▼之后就到this了,我们讲了this指针的五个用法:1. To qualify instance members otherwise hidden by para...
Compare Version Numbers
Compare two version numbers version1 and version2.
If version1 > version2 return 1, if version1 version2 return -1, otherwise return 0.
You may assume that the version...
分类:
其他好文 时间:
2015-03-29 13:42:43
阅读次数:
130
转自:http://yangguangfu.iteye.com/blog/902559When set to true, the selector will be drawn over the selected item. Otherwise the selector is drawn behind...
分类:
移动开发 时间:
2015-03-21 18:39:50
阅读次数:
147
Notes:1. When check left shifting, do not use continue, but break it!!! Otherwise, you wil fall into infinite loop2. Initialize the map with T, not S!...
There couple of edge cases need to remember:1. The result, absolute value of dividend and divisor. Otherwise, when the record goes out of boundary, th...
分类:
其他好文 时间:
2015-03-19 08:50:24
阅读次数:
125
Made a stupid bug....... When reverse the vector, stop it at mid. Otherwise, it will swap back......Mark!!!!!!!! 1 /** 2 * Definition for binary tree....
分类:
其他好文 时间:
2015-03-18 10:23:29
阅读次数:
120
Use a hash table to record it. The tricky part is that when the hash value is > 0, it is the index + 1. Otherwise, that string already exists in resul...
分类:
其他好文 时间:
2015-03-18 07:47:38
阅读次数:
100
Timeouts are import for programs that connect to external resources or that otherwise need to bound execution time. Implementing timeouts in Go is eas...
分类:
其他好文 时间:
2015-03-16 14:18:04
阅读次数:
126
如果是JSTL1.1版本,使用
否则的话,如果是JSTL1.0版本,使用,另外需要在项目中导入JSTL和standard两个jar包。
、...
分类:
Web程序 时间:
2015-03-15 16:58:32
阅读次数:
142