題目: https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/將一個...
題目: https://leetcode.com/problems/sum-root-to-leaf-numbers/一個包含0~9的二元樹,找到其根節點到葉數...
題目: https://leetcode.com/problems/linked-list-cycle/給一個連結串列,判斷是否為循環的連結串列。 解題思路:...
題目: https://leetcode.com/problems/intersection-of-two-linked-lists/回傳當2個鏈結串列值相同的...
題目: https://leetcode.com/problems/reverse-linked-list/翻轉串結鏈結並回傳。 解題思路: 透過三個指標pos...
題目: https://leetcode.com/problems/remove-linked-list-elements/刪除鏈結串列中所有指定的數值。 解題...
題目: https://leetcode.com/problems/single-number/找出唯一出現過一次的數字。(面試中偶爾會看到測試你能不能將XOR...
題目: https://leetcode.com/problems/invert-binary-tree/反轉二元樹並回傳結果。 解題思路: 先交換節點,利用遞...
題目: https://leetcode.com/problems/find-peak-element/回傳陣列中比左邊數字和右邊數字大之索引值。 解題思路:...
題目: https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/從排序好的陣...