Leetcode 暑期bb班
中鋒大衛雷斯 2022-5-25 19:21:19 個人認為,為外國interview嘅話
操algo唔好淨係寫code
應該要練埋用把口以英文clarify requirements, present solution
可以嘅話搵個fd扮考interviewer,唔得嘅話都搵個rubber duck
咁樣先可以模擬到真實interview個陣whiteboard/ pair programming嘅情況

Ads

裂曲風紀 2022-5-25 19:22:36 點解我地好似平衡時空
我係美國,清一色問leetcode。。。
無人問過side project嘅嘢
裂曲風紀 2022-5-25 19:24:19 大概day 60左右我就會鼓勵大家用口clarify code
而家想啲新手focus落去problem solving先
靜靜打J好無 2022-5-25 20:08:12 此回覆已被刪除
柔弱的角 2022-5-25 20:09:02 吹水?
:^(
裂曲風紀 2022-5-25 20:17:00 呢啲最少去到day 60先會出現
elon.musk. 2022-5-25 20:18:26
:^(
:^(
:^(
靜靜打J好無 2022-5-25 20:22:54 此回覆已被刪除
裂曲風紀 2022-5-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-5-25 20:27:59 你可能day89返黎,呢度好慢的
:^(
真的戇鳩了 2022-5-25 20:32:43 係咪同codewar差唔多?

Ads

IU粒淚痣 2022-5-25 20:41:25 會唔會bb得滯
:^(
靜靜打J好無 2022-5-25 20:43:06 此回覆已被刪除
裂曲風紀 2022-5-25 21:12:17 weekend會出一堆advaned題目,比爬得快嘅BB玩
每個topic頭幾日都係比較容易,聽日先做two sum
:^(
柯不甩 2022-5-25 22:08:00 Lm
H07252 2022-5-25 22:10:02 支持
:^(
:^(
有心法事 2022-5-25 23:03:25
:^(
:^(
力=質量x加速度 2022-5-25 23:33:31 此回覆已被刪除
GammaCorvi 2022-5-25 23:35:34 此回覆已被刪除
D_Whyte 2022-5-25 23:45:45 strong
gchi sir leetcode ambassador
:^(
:^(
:^(
裂曲風紀 2022-5-25 23:45:58 william lin操1秒就夠
:^(

你可以自己set個timeline比自己
https://www.techinterviewhandbook.org/grind75

Ads

靜靜打J好無 2022-5-25 23:46:51 此回覆已被刪除
大洋國大西瓜 2022-5-25 23:53:10 此回覆已被刪除
大洋國大西瓜 2022-5-25 23:54:32 此回覆已被刪除
難道我還未夠難 2022-5-26 00:13:06 此回覆已被刪除