原文題目
Given a string s and a dictionary of strings wordDict, return true if s can...
AVL樹筆記
學習影片https://www.youtube.com/watch?v=2j8VlJFkLFg
基本定義
AVL 樹 是一種自平衡的二元搜尋樹...
EasyRelated Topics: Array / StringLeetCode Source
解題想法
在 details 的陣列中,總長 15,計算...
剛好在最近工作上有遇到這個問題,就趁這個機會來討論 translate() 和 absolute 的差異,以及為什麼我們應該使用 translate() 來移動...
108. Convert Sorted Array to Binary Search Tree
题目描述:
給定一個升序排序的整數陣列 nums,將其轉換為一棵...
題目:
我們需要判斷給定的字串 pattern 是否與字串 s 遵循相同的模式。
具體來說,每個 pattern 中的字元應唯一地對應到 s 中的單詞,並且這種...