Leetcode 暑期bb班

495 回覆
251 Like 31 Dislike
2022-05-25 19:21:19
個人認為,為外國interview嘅話
操algo唔好淨係寫code
應該要練埋用把口以英文clarify requirements, present solution
可以嘅話搵個fd扮考interviewer,唔得嘅話都搵個rubber duck
咁樣先可以模擬到真實interview個陣whiteboard/ pair programming嘅情況
2022-05-25 19:22:36
點解我地好似平衡時空
我係美國,清一色問leetcode。。。
無人問過side project嘅嘢
2022-05-25 19:24:19
大概day 60左右我就會鼓勵大家用口clarify code
而家想啲新手focus落去problem solving先
2022-05-25 20:09:02
吹水?
2022-05-25 20:17:00
呢啲最少去到day 60先會出現
2022-05-25 20:18:26
2022-05-25 20:26:23
尋日有啲leetcode bb對defaultdict唔理解,睇睇以下example
我地呢度用普通dictionary {},你run係會出error,因為我地攞個key-value嘅時候,個key暫時唔存在
如果你用defaultdict嘅話,個key唔存在嘅時候佢會當value係1,你可以改返用defaultdict唔用 {} ,再print,研究下個defaultdict點運作

Day 2:繼續dictionary,不過難少少
https://leetcode.com/problems/sum-of-unique-elements/
https://leetcode.com/problems/two-out-of-three/

sum of unique elements應該比較容易,無咩嘢講

two out of three tricky少少,比一個錯誤示範

我地唔可以直接count每一個數出現幾多次,因為我地嘅目標係想知道每一個數係唔係出現喺最少兩個input,而唔係overall出現最少兩次
你用返尋日嘅skill應該有方法做到
呢題最方便應該用set做,不過新手們試下繼續用dictionary先
加油
聽日見
2022-05-25 20:27:59
你可能day89返黎,呢度好慢的
2022-05-25 20:32:43
係咪同codewar差唔多?
2022-05-25 20:41:25
會唔會bb得滯
2022-05-25 21:12:17
weekend會出一堆advaned題目,比爬得快嘅BB玩
每個topic頭幾日都係比較容易,聽日先做two sum
2022-05-25 22:08:00
Lm
2022-05-25 22:10:02
支持
2022-05-25 23:03:25
2022-05-25 23:45:45
strong
gchi sir leetcode ambassador
2022-05-25 23:45:58
william lin操1秒就夠
你可以自己set個timeline比自己
https://www.techinterviewhandbook.org/grind75
吹水台自選台熱 門最 新手機台時事台政事台World體育台娛樂台動漫台Apps台遊戲台影視台講故台健康台感情台家庭台潮流台美容台上班台財經台房屋台飲食台旅遊台學術台校園台汽車台音樂台創意台硬件台電器台攝影台玩具台寵物台軟件台活動台電訊台直播台站務台黑 洞