LeetCode—Compare Version Numbers,leetcodecompareCompare two version numbers version1 and version1.If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0.You
在Eclipse中運行Nutch2.3,eclipsenutch2.3參考http://wiki.apache.org/nutch/RunNutchInEclipse一、環境準備1、下載nutch2.3原始碼wget http://mirror.bit.edu.cn/apache/nutch/2.3/apache-nutch-2.3-src.tar.gz或者下載正在開發中的最新版本 svn co https://svn.apache.org/repos/asf/nutch/branches/2.
(hdu step 1.3.7)As Easy As A+B(排序),hdu1.3.7題目: As Easy As A+BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2678 Accepted Submission(s): 1280 Problem
101. Symmetric Tree Leetcode Python,symmetricleetcodeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \3 4 4 3But the following is not:
leetcode.12----------Integer to Roman,romantointegerGiven an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.羅馬數字規則:參考wiki:http://zh.wikipedia.org/wiki/%E7%BD%97%E9%A9%AC%E6%95%B0%E5%AD%97
Sort Colors,sortcolors本文是在學習中的總結,歡迎轉載但請註明出處:http://blog.csdn.net/pistolove/article/details/43302343Given 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
(HDUStep 1.2.7)IBM Minus One(字串運算),hdustep1.2.7題目: IBM Minus OneTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3943 Accepted Submission(s): 1519 Problem