原创 Leetcode 12 Integer to Roman整數變羅馬

題目: Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 翻譯:

原创 LeetCode 9 Palindrome Number 迴文數字

題目:Determine whether an integer is a palindrome. Do this without extra space. 翻譯:判斷一個數字是否是迴文數,不要額外空間。 解題思路:因爲數字既然傳過去了,就

原创 Leetcode 12 Integer to Roman整數變羅馬

題目: Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 翻譯:

原创 LeetCode 9 Palindrome Number 迴文數字

題目:Determine whether an integer is a palindrome. Do this without extra space. 翻譯:判斷一個數字是否是迴文數,不要額外空間。 解題思路:因爲數字既然傳過去了,就

原创 LeetCode 10 Regular Expression Matching 正則匹配

 題目: Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matche

原创 Leetcode 7 Reverse Integer 反轉數字

題目: Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 翻譯就是把一個數字反過來輸出。 解題思路:

原创 從頭到尾徹底理解KMP(2014年8月22日版)

從頭到尾徹底理解KMP 轉自:http://blog.csdn.net/v_july_v/article/details/7041827 感覺寫的不錯,看起來可以看懂 作者:July 時間:最初寫於

原创 從頭到尾徹底理解KMP(2014年8月22日版)

從頭到尾徹底理解KMP 轉自:http://blog.csdn.net/v_july_v/article/details/7041827 感覺寫的不錯,看起來可以看懂 作者:July時間:最初寫於2011

原创 LeetCode 11 Container With Most Water 裝儘可能多的水

題目: Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are

原创 LeetCode 8 String to Integer (atoi)

題目: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a

原创 Java List ArrayList用法詳解

轉自:http://blog.csdn.net/hutuchongaini/article/details/12945401 剛纔刷LeetCode的碰到的一個小細節的問題,就是List的聲明問題。 找了一個寫的比較不錯的文章,轉之,學習

原创 application/vnd.android.package-archive到底是什麼

在拜讀組裏北大研二的安卓代碼的時候, 讀到登錄前檢測版本後更新的代碼。發現了一個不懂的地方。 void update() { Intent intent = new Intent(Intent.ACTION_VIEW); i

原创 關於安卓截取縮略圖的方法和遇到的問題

最近的一個項目,需要寫到錄製視頻,然後截取縮略圖顯示的功能。在以前的寫法是調用系統自帶的攝像的功能,但是效果不佳。 後來打算自己寫一個錄製視頻的方法,成功了,並保存在本地路徑。 然而在提取縮略圖的時候遇到了一系列的問題。 某大神告訴我可以

原创 LeetCode 27 Remove Element

題目: Given an array and a value, remove all instances of that value in place and return the new length. The order of

原创 LeetCode 25 Reverse Nodes in k-Group K個一組反轉節點

題目: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number