上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 30 下一页
摘要: variable & const eclipse keymap alt + -> = step into alt + <- = step out ctrl + d = delete a := 1 cannot be used to declare global variable one packag 阅读全文
posted @ 2023-10-13 22:02 PEAR2020 阅读(29) 评论(0) 推荐(0)
摘要: go 路径问题: go install 下载到$GOPATH/bin 下生成exe,$GOPATH/bkg下载包 cd 到目标文件目录,go install, cd $GOPATH/bin ./main.exe go get 对比 go install: https://juejin.cn/post 阅读全文
posted @ 2023-10-12 17:41 PEAR2020 阅读(28) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-10-12 11:26 PEAR2020 阅读(16) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2023-08-19 22:37 PEAR2020 阅读(10) 评论(0) 推荐(0)
摘要: 1. Boyer-Moore Voting Algorithm identify the majority element (frequency > n/2) class Solution { public int majorityElement(int[] nums) { int count = 阅读全文
posted @ 2023-07-06 02:05 PEAR2020 阅读(20) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2023-07-03 02:39 PEAR2020 阅读(17) 评论(0) 推荐(0)
摘要: 1. 一般可以用简易版: Arrays.sort(lst, (a,b) -> a[0]-b[0]); 但是在遇到a,b是large numbers时候遇到困难,改成: Arrays.sort(points,(o1,o2)->{ if(o1[1] == o2[1]) return 0; if(o1[1 阅读全文
posted @ 2023-06-23 11:47 PEAR2020 阅读(40) 评论(0) 推荐(0)
摘要: https://blog.developer.atlassian.com/10-design-principles-for-delightful-clis/ 阅读全文
posted @ 2022-06-13 20:15 PEAR2020 阅读(17) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2022-06-12 10:36 PEAR2020 阅读(33) 评论(0) 推荐(1)
摘要: 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 阅读全文
posted @ 2022-06-12 08:56 PEAR2020 阅读(42) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 30 下一页