原创 Ubuntu軟件安裝指南:dpkg、apt 與源碼包安裝

基礎知識: 通常情況下,linux會這樣放軟件的組件(一般規範): 程序的文檔->/usr/share/doc; /usr/local/share/doc 程序->/usr/share; /usr/local/share 程序的啓動項->

原创 Java正則表達式 匹配中文字符

若要用JAVA正則表達式匹配中文字符,主要是瞭解中文字符的編碼。 匹配中文字符:半角:[\u4e00-\u9fa5] ,全角:[ufe30-uffa0] 匹配中文符號: 。 ;  , : “ ”( ) 、 ? 《 》的對應編碼爲:"[\u

原创 acm入門必看的學長經驗【轉載自www.acmwiki.com】

以下僅僅是本人個人的一點點想法,僅供參考,希望對於還沒有方向處於盲目階段的acmer新手會有所幫助。 1,買一本《算法導論》,先自己大概瀏覽一遍。 收藏acm網址導航http://www.acmwiki.com/收錄了國內外各大OJ。 2

原创 LeetCode -- Best Time to Buy and Sell Stock II (貪心策略,差分序列)

Best Time to Buy and Sell Stock II   Total Accepted: 13894 Total Submissions: 38779My Submissions Say you hav

原创 What will the following polymorphic code output in C ++

本題來源於Morgan Stanley暑期實習生招聘中的online test環節,考察了C++中多態、繼承方面的知識。 What will the following polymorphic code output in C ++?

原创 聚合索引(clustered index) / 非聚合索引(nonclustered index)

1. 什麼是聚合索引(clustered index) / 什麼是非聚合索引(nonclustered index)? 2. 聚合索引和非聚合索引有什麼區別? 聚簇索引(clustered index)和非聚簇索引(nonclustere

原创 編程之美2014資格賽——大神與三個小夥伴

題目2 : 大神與三位小夥伴 時間限制:2000ms 單點時限:1000ms 內存限制:256MB 描述 L國是一個有着優美景色且物產豐富的國家,很多人都喜歡來這裏旅遊並且喜歡帶走一些紀念品,大神同學也不例外。距離開L國

原创 The ML books recommended by Mike Jordan

Mike Jordan at Berkeley sent me his list on what people should learn for ML. The list is definitely on the more rigoro

原创 微軟編程之美2014 熱身賽——傳話遊戲

題目1 : 傳話遊戲 時間限制:2000ms 單點時限:1000ms 內存限制:256MB 描述 Alice和Bob還有其他幾位好朋友在一起玩傳話遊戲。這個遊戲是這樣進行的:首先,所有遊戲者按順序站成一排,Alice站第一

原创 LeetCode -- Triangle 路徑求最小和( 動態規劃問題)

https://oj.leetcode.com/problems/triangle/ Triangle   Total Accepted: 10560 Total Submissions: 39313My Submissions

原创 POJ 3278:Catch That Cow 抓住那頭牛

POJ 3278:Catch That Cow 抓住那頭牛 總時間限制: 2000ms 內存限制: 65536kB 描述 Farmer John has been informed of the location of a fug

原创 經典算法——堆排序

堆排序與快速排序,歸併排序一樣都是時間複雜度爲O(N*logN)的幾種常見排序方法。 學習堆排序前,先講解下什麼是數據結構中的二叉堆。 二叉堆的定義 二叉堆是完全二叉樹或者是近似完全二叉樹。 二叉堆滿足二個特性: 1.父結點的鍵值

原创 LeetCode--Best Time to Buy and Sell Stock (貪心策略 or 動態規劃)

Best Time to Buy and Sell Stock   Total Accepted: 14044 Total Submissions: 45572My Submissions Say you have an

原创 微軟2014實習生及秋令營技術類職位在線測試之 2. K-th String

題目2 : K-th string 時間限制:10000ms 單點時限:1000ms 內存限制:256MB Description Consider a string set that each of them con

原创 LeetCode--Best Time to Buy and Sell Stock III (動態規劃)

Best Time to Buy and Sell Stock III   Total Accepted: 8979 Total Submissions: 40808My Submissions Say you have