題目: https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/從排序好的陣...
題目: https://leetcode.com/problems/find-peak-element/回傳陣列中比左邊數字和右邊數字大之索引值。 解題思路:...
題目: https://leetcode.com/problems/invert-binary-tree/反轉二元樹並回傳結果。 解題思路: 先交換節點,利用遞...
題目: https://leetcode.com/problems/single-number/找出唯一出現過一次的數字。(面試中偶爾會看到測試你能不能將XOR...
題目: https://leetcode.com/problems/remove-linked-list-elements/刪除鏈結串列中所有指定的數值。 解題...
題目: https://leetcode.com/problems/reverse-linked-list/翻轉串結鏈結並回傳。 解題思路: 透過三個指標pos...
題目: https://leetcode.com/problems/intersection-of-two-linked-lists/回傳當2個鏈結串列值相同的...
題目: https://leetcode.com/problems/linked-list-cycle/給一個連結串列,判斷是否為循環的連結串列。 解題思路:...
題目: https://leetcode.com/problems/sum-root-to-leaf-numbers/一個包含0~9的二元樹,找到其根節點到葉數...
題目: https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/將一個...
題目: https://leetcode.com/problems/maximum-depth-of-binary-tree/求一個二元樹最大深度並回傳。 解題...
題目: https://leetcode.com/problems/symmetric-tree/判斷一個二元樹是否鏡像,是的話回傳TRUE不是的話回傳FALS...
題目: https://leetcode.com/problems/same-tree/判斷2個二元樹是否相同,回傳true或false。 解題思路: 從第一個...
題目: https://leetcode.com/problems/binary-tree-inorder-traversal/中序排序法訪問順序為左節點-&g...
題目: https://leetcode.com/problems/merge-two-sorted-lists/合併2個排序好的鏈結串列,按排序大小回傳一個新...
題目: https://leetcode.com/problems/swap-nodes-in-pairs/一個連結串列,交換2個相鄰的節點並返回首節點。 解題...
題目: https://leetcode.com/problems/rotate-array/一個陣列將其向右旋轉k步,並回傳結果。 解題思路: 利用2個for...
題目: https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/在已排序的陣列使其數值相加...
題目: https://leetcode.com/problems/maximum-product-subarray/給定一個陣列,找到連續的最大乘積 解題思路...
題目: 請看維基百科解釋https://en.wikipedia.org/wiki/Pascal%27s_trianglehttps://leetcode.co...
題目: https://leetcode.com/problems/merge-sorted-array/2個排序好的陣列,合併成一個排序好的陣列。 解題思路:...
題目: https://leetcode.com/problems/plus-one/給一個陣列把最後一個數字加一,如需要進位把該數字變成零下一進位值加一。 解...
題目: https://leetcode.com/problems/powx-n/計算平方數值。 解題思路: 利用遞迴概念求出平方值。 C版本: double...
題目: https://leetcode.com/problems/search-insert-position/已知一個排序好的陣列與目標值,如有找到目標值返...
題目: https://leetcode.com/problems/remove-element/回傳不等於目標值外的長度。 解題思路: 利用for迴圈判斷陣列...
題目: https://leetcode.com/problems/remove-duplicates-from-sorted-array/一個排列好的陣列,回...
題目: https://leetcode.com/problems/valid-parentheses/一個字串中包含'(' , ')', '{', '}',...
題目: https://leetcode.com/problems/reverse-integer/反轉32bits的整數,須注意溢位的問題。 解題思路: 藉由...
題目: https://leetcode.com/problems/two-sum/給一個陣列,返回兩個數字的索引,使它們相加到特定目標。 解題思路: 使用2個...
本文展示C++從外部拖拉一群檔案至視窗的實例。在PDM系統之業務洽辦單之各單有其專屬的文件資料,本程式讓使用者以拖拉檔案的方式建立相關文件檔案。 程式碼所在