解題程式碼
var isSubtree = function (root, subRoot) {
const isSameTree = (p, q) =&g...
原文題目
You are given an m x n integer matrix matrix with the following two propert...
今天來解YKL03(UVA10812):Beat the Spread!
Beat the Spread!
給一個s(sum)和d(difference)要o...
在上一篇,我們簡介了動態規劃的基本概念與解題時應用的兩種策略。
今天開始,我們會從Easy難度入門,介紹各種不同的動態規劃題型與解題時的訣竅。
若各位讀者有時間...
在 LeetCode 217 題「Contains Duplicate」中,我們需要檢查一個整數陣列中是否包含重複的元素。如果陣列中有重複的數字,則回傳 tru...
先上今天拍的月亮,中秋快樂~~~
題目
884. Uncommon Words from Two Sentences難度: 用c++的話簡單
題意
給定兩字串s...