• 點部落
  • 首頁
  • RSS
    • 登入

Ben Huang's Blog

我們總是太高估自己短期能完成的事情,太低估長期能做到的事。 Ain't Nothing To It But To Do It

2020-02-20

LeetCode: 83. Remove Duplicates from Sorted List

  • 1021
  • 0
  • LeetCode

題目給定一個已排序好的linked list,要求將所有重複的node皆刪除,使得每個元素均只出現一次。

Given a sorted linked list, delete all duplicates such that each element appear only once.

...繼續閱讀 »
  • LinkedList
2020-02-07

LeetCode: Merge Two Sorted Lists

  • 212
  • 0
  • LeetCode
  • 2020-02-20

回傳兩個已經排序過的linked list的合併,僅能使用原有的linked list回傳。

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.

 

...繼續閱讀 »
  • LinkedList
  • 1

系列文章

標籤雲

  • 服務規範
  • 聯絡我們
© 2025 點部落 Ver. 1.0.0.0
電魔小鋪有限公司 製作、維運;登豐數位科技 提供資安檢測