討論串[閒聊] 每日LeetCode
共 719 篇文章
內容預覽:
https://leetcode.com/problems/determine-if-string-halves-are-alike. 1704. Determine if String Halves Are Alike. 給一個偶數長度的字串s,把它分成兩半。如果兩半的母音數量相同則為Alike,
(還有643個字)
內容預覽:
https://leetcode.com/problems/amount-of-time-for-binary-tree-to-be-infected/description2385. Amount of Time for Binary Tree to Be Infected. 給一個二元樹和一個整
(還有1886個字)
內容預覽:
https://youtu.be/iTy13tsi054?si=LMHxZ3stNY_xAdd2. https://i.imgur.com/KLiOJkM.png. 單純跟Java比. 原生異步. 原生單例. functional變簡單很多 還不用考慮Java8兼容性. 顯式的mutablity跟n
(還有112個字)
內容預覽:
872. Leaf-Similar Trees. https://leetcode.com/problems/leaf-similar-trees/description/. 給定兩棵二元樹 root1 與 root2 ,. 從左到右來看,. 傳回這兩棵樹的葉節點是否相似。. --. 思路:. 葉節
(還有1006個字)
內容預覽:
938. Range Sum of BST. https://leetcode.com/problems/range-sum-of-bst/description/. 給定一個二元搜尋樹與兩個整數 low 與 high ,. 傳回樹中所有值介於上下界之間的節點之總和。. --. 思路:. 二元搜尋樹
(還有960個字)