tornado+bootstrap急速搭建你自己的網站,tornadobootstrapbootstrap既然是這麼的流行又能省很多的事為什麼不用他呢?再加上牛X的produced by FB的tornado簡直如虎添翼了!1. 安裝配置安裝所需要的庫等內容。這裡沒什麼需要多講的。tornado直接用easy_install或者pip。bootstrap直接下下來就OK了。當然還需要下載bootstrap依賴的jquery。依次下載安裝就可以。2.
LeetCode Reverse Nodes in k-Group,leetcodek-groupGiven a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k then left-out nodes in the end should
hdu1238---Substrings, Problem Description You are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found as a substring of any of the given strings.Input
(hdu step 4.1.1)Can you solve this equation?(使用二分法來求解方程組的解),hduequation題目:Can you solve this equation?Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 915 Accepted Submission(s): 436 Problem
[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_104_Maximum Depth of Binary Tree,addbinaryleetcode歡迎大家閱讀參考,如有錯誤或疑問請留言糾正,謝謝Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the
hdu 4734 數位dp,hdu4734http://acm.hdu.edu.cn/showproblem.php?pid=4734Problem DescriptionFor a decimal number x with n digits (AnAn-1An-2 ... A2A1), we define its weight as F(x) = An * 2n-1 + An-1 * 2n-2 + ... +
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
leetcode_92_Reverse Linked List II,sortlistleetcode歡迎大家閱讀參考,如有錯誤或疑問請留言糾正,謝謝Reverse Linked List II Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1->2->3->4->5->NULL, m = 2 and n =
淺析JavaScript閉包,淺析javascript閉 閉包和原型是javascript語言的兩大特點,上篇博文《淺析JavaScript原型》中已經總結了原型 ,今天就總結一下閉包的相關知識。前言在開始閉包之前,需要先介紹一下匿名函數和JavaScript記憶體回收機制這兩個概念。匿名函數匿名函數,很容易理解,就是沒有名字的函數。//普通函數function box(){ return ‘This's just a
java序列化一定要應該注意的6個事項!,java序列化1、如果子類實現Serializable介面而父類未實現時,父類不會被序列化,但此時父類必須有個無參構造方法,否則會拋InvalidClassException異常。2、靜態變數不會被序列化,那是類的“菜”,不是對象的。3、transient關鍵字修飾變數可以限制序列化。4、虛擬機器是否允許還原序列化,不僅取決於類路徑和功能代碼是否一致,一個非常重要的一點是兩個類的序列化 ID 是否一致,就是 private static final