摘要:
variable & const eclipse keymap alt + -> = step into alt + <- = step out ctrl + d = delete a := 1 cannot be used to declare global variable one packag 阅读全文
摘要:
go 路径问题: go install 下载到$GOPATH/bin 下生成exe,$GOPATH/bkg下载包 cd 到目标文件目录,go install, cd $GOPATH/bin ./main.exe go get 对比 go install: https://juejin.cn/post 阅读全文
摘要:
example to explain how to calculate Time Complexity the memo size means each state will be calculated only once how about the TC in each state? class 阅读全文
摘要:
1. Boyer-Moore Voting Algorithm identify the majority element (frequency > n/2) class Solution { public int majorityElement(int[] nums) { int count = 阅读全文
摘要:
1. return it modulo 10^9 + 7 to prevent large result: => int mod = 1_000_000_007; then result %= mod 2. Top-down memorization: memo几维一般看dfs()里面有几个变量+1 阅读全文
摘要:
1. Intro to Flask 1.1 Simplest Demo 1.1.1 install virtual environment to separate package cd a new folder # see existing packages pip list # venv modu 阅读全文
摘要:
1. Requirement chyper-code.xlsx 2. Implementation 2.1 custom encoding read from excel rename columns uniform type data in excel => dict how to elegant 阅读全文