labuladong / basic-challenge

200 stars 23 forks source link

已结束 #310

Closed labuladong closed 1 year ago

labuladong commented 1 year ago

本期打卡已结算完成。报名最新一期的打卡活动 点这里

ZitongWang1202 commented 1 year ago

Q543 https://leetcode.com/problems/diameter-of-binary-tree/solutions/3387209/python3-subtree-problem/

wwang108 commented 1 year ago

https://leetcode.com/problems/diameter-of-binary-tree/solutions/3388197/recursion/

famousSweetTea commented 1 year ago

Q104 https://leetcode.cn/problems/maximum-depth-of-binary-tree/solutions/2212971/104-er-cha-shu-de-zui-da-shen-du-by-chen-48xk/

woshiamiaojiang commented 1 year ago

LC144 https://leetcode.cn/problems/binary-tree-preorder-traversal/solutions/2213098/qian-xu-bian-li-mo-ban-by-wo-shi-a-miao-oblv1/ LC116 https://leetcode.cn/problems/populating-next-right-pointers-in-each-node/solutions/2214543/tu-shi-ti-jie-by-wo-shi-a-miao-jiang-n8nh/

yuhuan0311 commented 1 year ago

Q104:https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/104-er-cha-shu-zui-da-shen-du-bian-li-di-sndj/

t00232117 commented 1 year ago

144:https://leetcode.cn/problems/binary-tree-preorder-traversal/solution/di-gui-by-t00232117-x2cz/

Guinguin0416 commented 1 year ago

LC104: https://leetcode.com/problems/maximum-depth-of-binary-tree/solutions/3389341/java-easy-and-clean/

lukeisc123 commented 1 year ago

Q104:https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/104-er-cha-shu-de-zui-da-shen-du-by-luke-0m5h/

t00232117 commented 1 year ago

104:https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/bian-li-di-gui-by-t00232117-ntrc/

zjy020 commented 1 year ago

https://leetcode.com/problems/binary-tree-preorder-traversal/solutions/3390507/stack/

Adm1n1strator commented 1 year ago

Q104: https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/di-gui-qiu-jie-er-cha-shu-zui-da-shen-du-pv39/

ptmjdz commented 1 year ago

144:https://leetcode.cn/problems/binary-tree-preorder-traversal/solution/144-by-ding-hao-feng-i-eosj/

zhuangms commented 1 year ago

Q543: https://leetcode.com/problems/diameter-of-binary-tree/solutions/3390764/543/

HeyingYu commented 1 year ago

LC 104: https://leetcode.com/problems/maximum-depth-of-binary-tree/solutions/3391344/2-recursive-solutions-solving-subproblem-or-traverse-tree-code-provided/

szxgithub commented 1 year ago

https://leetcode.cn/problems/maximum-depth-of-binary-tree/solutions/2214494/er-cha-shu-de-zui-da-shen-du-by-koistjl-tei6/

charles0189 commented 1 year ago

104:https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/er-cha-shu-by-tyakun-urw7/

blindme92 commented 1 year ago

Q104:注意返回值不要定义成全局变量 https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/shi-yong-dpbian-li-er-cha-shu-de-fang-sh-lo71/

分治思路: https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/di-er-chong-si-lu-shi-fen-jie-dao-mei-ge-u09q/

DylanCaiCoding commented 1 year ago

104:https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/er-cha-shu-zui-da-shen-du-kotlin-jie-fa-64s46/ 144:https://leetcode.cn/problems/binary-tree-preorder-traversal/solution/er-cha-shu-qian-xu-bian-li-de-kotlin-ti-661pm/ 543:https://leetcode.cn/problems/diameter-of-binary-tree/solution/er-cha-shu-zhi-jing-de-kotlin-ti-jie-by-cudrx/

zzpwsm commented 1 year ago

Q104:https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/er-cha-shu-de-zui-da-shen-du-die-dai-di-o1nxw/

cyq959596 commented 1 year ago

LQ:104 https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/er-cha-shu-de-zui-da-shen-du-by-cheng-ch-0081/

maidao-yang commented 1 year ago

104. 二叉树的最大深度

suguri5029 commented 1 year ago

Q543 https://leetcode.cn/problems/diameter-of-binary-tree/solution/c-hou-xu-bian-li-by-suguri-2-vwlr/

VickyArs commented 1 year ago

LC104 https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/python3di-gui-qian-xu-bian-li-by-vicky-a-mnw1/

GiftedJF commented 1 year ago

Q543 https://leetcode.cn/problems/diameter-of-binary-tree/solutions/2215667/er-cha-shu-de-bian-li-by-gifted_idiot-91fb/ Q104 https://leetcode.cn/problems/maximum-depth-of-binary-tree/solutions/2215675/er-cha-shu-de-bian-li-by-gifted_idiot-2n22/

YangJiaCheng97 commented 1 year ago

Q104:https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/by-wu-yue-yjc-gkqh/ Q543:https://leetcode.cn/problems/diameter-of-binary-tree/solution/by-wu-yue-yjc-3pdu/

Ming-Zhou0201 commented 1 year ago

https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/104-er-cha-shu-de-zui-da-shen-du-by-cool-je61/

jingjingmai commented 1 year ago

https://leetcode.cn/problems/binary-tree-preorder-traversal/solution/er-cha-shu-de-qian-xu-bian-li-by-abc1234-8jl7/

Jilingwei commented 1 year ago

https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/er-cha-shu-zui-da-shen-du-jing-dian-jie-nrc7s/

Ghostlyn commented 1 year ago

Q144 https://leetcode.cn/problems/binary-tree-preorder-traversal/solutions/2215773/di-gui-qian-xu-bian-li-by-ghostlyn-x5qy/ Q104 https://leetcode.cn/problems/maximum-depth-of-binary-tree/solutions/2215783/di-gui-bian-li-ji-suan-zui-da-shen-du-by-khrm/ Q543 https://leetcode.cn/problems/diameter-of-binary-tree/solutions/2215797/di-gui-bian-li-qiu-jie-zhi-jing-by-ghost-kqn4/

yulinlinlynn commented 1 year ago

二叉树543 https://leetcode.cn/problems/diameter-of-binary-tree/solutions/2215813/er-cha-shu-543-by-yulinlinlynn-2acu/

yulinlinlynn commented 1 year ago

二叉树104 https://leetcode.cn/problems/maximum-depth-of-binary-tree/solutions/2219200/er-cha-shu-wen-ti-de-liang-chong-si-lu-j-tdxw/ 二叉树子树用后序遍历 543 优化 https://leetcode.cn/problems/diameter-of-binary-tree/post-solution/?submissionId=423142340 二叉树的前序遍历 144 https://leetcode.cn/problems/binary-tree-preorder-traversal/solutions/2219368/er-cha-shu-de-qian-xu-bian-li-liang-chon-nd9z/

jiujingxukong commented 1 year ago

q104 https://leetcode.cn/problems/maximum-depth-of-binary-tree/solutions/2219419/dong-tai-gui-hua-si-lu-de-dao-er-cha-shu-p1r9/

HaroHuang commented 1 year ago

Q104:https://leetcode.com/problems/maximum-depth-of-binary-tree/solutions/3400975/topic/

dorayx commented 1 year ago

https://leetcode.com/problems/maximum-depth-of-binary-tree/solutions/3401011/max-maxdepth-left-maxdepth-right/

Dinosly commented 1 year ago

https://leetcode.cn/problems/er-cha-shu-de-shen-du-lcof/solution/javascript-er-cha-shu-jie-jue-si-lu-by-p-4znx/

cpytt commented 1 year ago

Q104:https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/c-by-strcpy-7-eeav/

kane1997 commented 1 year ago

https://leetcode.cn/problems/maximum-depth-of-binary-tree/post-solution/?submissionId=423455324

kane1997 commented 1 year ago

https://leetcode.cn/problems/maximum-depth-of-binary-tree/solutions/2221103/qu-zui-da-zhi-jiu-ke-yi-de-dao-zui-da-sh-x02g/

djsz3y commented 1 year ago

144.https://leetcode.cn/problems/binary-tree-preorder-traversal/solution/by-djsz3y-zutv/ 104.https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/by-djsz3y-h73l/ 543.https://leetcode.cn/problems/diameter-of-binary-tree/solution/543er-cha-shu-de-zhi-jing-by-djsz3y-stbm/

AstrKing commented 1 year ago

104:https://leetcode.cn/problems/maximum-depth-of-binary-tree/solutions/2066936/er-cha-shu-de-zui-da-shen-du-by-aktrking-t52k/

bhandata commented 1 year ago

LC104 https://leetcode.com/problems/maximum-depth-of-binary-tree/solutions/3404803/java-recursion-dp/

whyyue commented 1 year ago

No.104 https://leetcode.cn/problems/maximum-depth-of-binary-tree/solution/er-cha-shu-de-zui-da-shen-du-by-zhangxr-yufn/ No.144 https://leetcode.cn/problems/binary-tree-preorder-traversal/solution/er-cha-shu-de-qian-xu-bian-li-by-zhangxr-wkp7/ No.543 https://leetcode.cn/problems/diameter-of-binary-tree/solution/by-zhangxr-fjr2/

DonkeyBoy001 commented 1 year ago

Q543 https://leetcode.com/problems/diameter-of-binary-tree/solutions/3405775/day12-bst/

lvyhnzhng commented 1 year ago
  1. https://leetcode.com/problems/maximum-depth-of-binary-tree/solutions/3406958/traverse-and-backtracking/
  2. https://leetcode.com/problems/diameter-of-binary-tree/solutions/3407016/post-order-position/