tornado+bootstrap急速搭建你自己的網站,tornadobootstrapbootstrap既然是這麼的流行又能省很多的事為什麼不用他呢?再加上牛X的produced by FB的tornado簡直如虎添翼了!1. 安裝配置安裝所需要的庫等內容。這裡沒什麼需要多講的。tornado直接用easy_install或者pip。bootstrap直接下下來就OK了。當然還需要下載bootstrap依賴的jquery。依次下載安裝就可以。2.
[leetcode] jump game II,leetcodejumpinput[i]表示jump的最大步數,res[i]表示跳到i需要的最少步數res[i] = min(res[j] + 1) for every j who satisfies the condition res[j] + input[j] >= i;但是這樣是O(n^2)的複雜度。。。過不了test case所以需要換一個角度想res[i]表示跳i步能到的最遠距離res[i] = max(res[i]
【LeetCode從零單排】No67.AddBinary,leetcode題目Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".代碼public class Solution { public String
HDU 5175 Misaki's Kiss again (異或運算,公式變形),hdu5175Misaki's Kiss againTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 201 Accepted Submission(s):
HDOJ 5155 Harry And Magic Box DP,hdoj5155dp[i][j] 表示 長寬為i,j的矩形的可能的總數dp[i][j+1] 可由 dp[i][j] 推過來,枚舉dp[i][j]所保留的行數(1...i)即可Harry And Magic BoxTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K
Remove Duplicates from Sorted Array II,duplicatessorted本文是在學習中的總結,歡迎轉載但請註明出處:http://blog.csdn.net/pistolove/article/details/43835055Follow up for "Remove Duplicates":What if duplicates are allowed at most twice?For example,Given
(hdu step 4.2.3)Rescue(求從起點到終點的最少步數,遇到特殊節點需要耗時2秒),hdu4.2.3題目:RescueTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 924 Accepted Submission(s): 387 Problem DescriptionAngel was caught by the
leetcode_142_Linked List Cycle II,linkedlistcycle 歡迎大家閱讀參考,如有錯誤或疑問請留言糾正,謝謝Linked List Cycle IIGiven a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up: Can you solve it without using extra space?