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簡(jiǎn)單的安裝方法:從菜單 View - Show Console 或者 ctrl + ~ 快捷鍵址儒,調(diào)出 console踱卵。將以下 Python ...
class Solution { public int shortestDistance(String[] words, String word1, String word2...
模擬一個(gè)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)高邪码,主要是兩個(gè)方法, 一個(gè)是找出這些零的位置咬清,之后用第二個(gè)方法將它的縱和橫都改成零闭专。 public clas...
這題是考察鏈表結(jié)構(gòu), 所以用recursion做旧烧, 但是也可以用兩根指針來回變換影钉, 我因?yàn)榭吹筋}目就想到recursion 就用recursion了。 最開始的時(shí)候就在一個(gè)f...
解題報(bào)告: 就是traversal all nodes掘剪。 /** * Definition for a binary tree node. * public class Tr...