題目給定一個已排序好的linked list,要求將所有重複的node皆刪除,使得每個元素均只出現一次。
Given a sorted linked list, delete all duplicates such that each element appear only once.
題目給定一個已排序好的linked list,要求將所有重複的node皆刪除,使得每個元素均只出現一次。
Given a sorted linked list, delete all duplicates such that each element appear only once.
回傳兩個已經排序過的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.