2024 iThome 鐵人賽
Share More Gain More
佛心分享-刷題不只是刷題
選手 27 文章 768
Problem : There is an integer array nums sorted in ascending order (with distinc...
原文題目Given the root of a binary tree, return the inorder traversal of its nodes'...
Day 30
2024-10-14
462
0
題目: 問題描述: 在一個 m x n 的網格中,你位於網格的左上角 (0, 0),需要移動到右下角 (m-1, n-1)。每次只能向右或向下移動,求有多少種不...
Day 19
2024-10-03
462
0
題目:給定一棵二元搜尋樹 (BST),和樹中的兩個節點 p 和 q,請找出這兩個節點的最近共同祖先 (Lowest Common Ancestor, LCA)。...
Day 21
2024-10-05
461
0
解題程式碼 var kSmallestPairs = function (nums1, nums2, k) { const res = []; cons...
Day 27
2024-10-11
460
0
題目 143:「重排鏈結串列 (Reorder List)」要求我們對單向鏈結串列進行重新排列,使得節點順序變為 L0 → Ln → L1 → Ln-1 → L...