class Solution { public String numberToWords(int num) { StringBuffer sb = new Str...
class Solution { public String numberToWords(int num) { StringBuffer sb = new Str...
juilacocodeMacBook-Air:todoList juilacoco$ sudo pip install virtualenv The directory '/...
juilacocodeMacBook-Air:~ juilacoco$ cd /Users/juilacoco/PycharmProjects/todolist juilac...
1, 安裝python (我用的是2.7版本) 2, 安裝pip ( sudo easy_install pip) 3, 安裝Djando(sudo pip install ...
安裝package control簡單的安裝方法:從菜單 View - Show Console 或者 ctrl + ~ 快捷鍵,調(diào)出 console。將以下 Python ...
class Solution { public int shortestDistance(String[] words, String word1, String word2...
模擬一個arraylist, 就是 FI LO public class Stack { /* * @param x: An integer * @return: ...
introducing system design & news feed system "DAU infrastructure web development" "4s" ...
int sum = 0; int count1 = 0; for(MarkPan i: list){ count1 += i.flag; sum = Math.max(sum...
1, html, CSS, JavaScript的基本區(qū)別 HTML is a noun, CSS is the abj, and the JS is the verb. h...
/** * Definition for a binary tree node. * public class TreeNode { * int val; * Tre...
解題報(bào)告: 因?yàn)椴灰胑xtra space 所以運(yùn)行時(shí)間可能有點(diǎn)高,主要是兩個方法, 一個是找出這些零的位置,之后用第二個方法將它的縱和橫都改成零。 public clas...
這題是考察鏈表結(jié)構(gòu), 所以用recursion做, 但是也可以用兩根指針來回變換, 我因?yàn)榭吹筋}目就想到recursion 就用recursion了。 最開始的時(shí)候就在一個f...
解題報(bào)告: 就是traversal all nodes。 /** * Definition for a binary tree node. * public class Tr...