Skip to content

Commit 3c6e828

Browse files
committed
Done 鏈結串列
1 parent 0dcd8b6 commit 3c6e828

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

translations/README-zh-tw.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -533,39 +533,39 @@ I'm using Github's special markdown flavor, including tasks lists to check progr
533533
- 因為陣列在記憶體中分配的位置相鄰,這有助於提高效能
534534
- 需要的空間 = (陣列的 capacity,顧名思義要 >= n) * 元素的大小。但即使空間需要 2n,空間複雜度依舊為 O(n)
535535

536-
- ### Linked Lists
537-
- [ ] Description:
538-
- [ ] [Singly Linked Lists (video)](https://www.coursera.org/learn/data-structures/lecture/kHhgK/singly-linked-lists)
539-
- [ ] [CS 61B - Linked Lists 1 (video)](https://archive.org/details/ucberkeley_webcast_htzJdKoEmO0)
540-
- [ ] [CS 61B - Linked Lists 2 (video)](https://archive.org/details/ucberkeley_webcast_-c4I3gFYe3w)
541-
- [ ] [C Code (video)](https://www.youtube.com/watch?v=QN6FPiD0Gzo)
542-
- not the whole video, just portions about Node struct and memory allocation.
543-
- [ ] Linked List vs Arrays:
544-
- [Core Linked Lists Vs Arrays (video)](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/rjBs9/core-linked-lists-vs-arrays)
545-
- [In The Real World Linked Lists Vs Arrays (video)](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/QUaUd/in-the-real-world-lists-vs-arrays)
546-
- [ ] [why you should avoid linked lists (video)](https://www.youtube.com/watch?v=YQs6IC-vgmo)
547-
- [ ] Gotcha: you need pointer to pointer knowledge:
548-
(for when you pass a pointer to a function that may change the address where that pointer points)
549-
This page is just to get a grasp on ptr to ptr. I don't recommend this list traversal style. Readability and maintainability suffer due to cleverness.
550-
- [Pointers to Pointers](https://www.eskimo.com/~scs/cclass/int/sx8.html)
551-
- [ ] implement (I did with tail pointer & without):
552-
- [ ] size() - returns number of data elements in list
553-
- [ ] empty() - bool returns true if empty
554-
- [ ] value_at(index) - returns the value of the nth item (starting at 0 for first)
555-
- [ ] push_front(value) - adds an item to the front of the list
556-
- [ ] pop_front() - remove front item and return its value
557-
- [ ] push_back(value) - adds an item at the end
558-
- [ ] pop_back() - removes end item and returns its value
559-
- [ ] front() - get value of front item
560-
- [ ] back() - get value of end item
561-
- [ ] insert(index, value) - insert value at index, so current item at that index is pointed to by new item at index
562-
- [ ] erase(index) - removes node at given index
536+
- ### 鏈結串列 (Linked Lists)
537+
- [ ] 相關介紹:
538+
- [ ] [單向鏈結串列 (影片)](https://www.coursera.org/learn/data-structures/lecture/kHhgK/singly-linked-lists)
539+
- [ ] [CS 61B - 鏈結串列 1 (影片)](https://archive.org/details/ucberkeley_webcast_htzJdKoEmO0)
540+
- [ ] [CS 61B - 鏈結串列 2 (影片)](https://archive.org/details/ucberkeley_webcast_-c4I3gFYe3w)
541+
- [ ] [C 程式語言 (影片)](https://www.youtube.com/watch?v=QN6FPiD0Gzo)
542+
- 不是完整的影片,只包含了 Node struct 和記憶體分配
543+
- [ ] 鏈結串列 vs 陣列:
544+
- [核心鏈結串列 Vs 陣列 (影片)](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/rjBs9/core-linked-lists-vs-arrays)
545+
- [真實世界的鏈結串列 Vs 陣列 (影片)](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/QUaUd/in-the-real-world-lists-vs-arrays)
546+
- [ ] [為什麼你要避免鏈結串列 (影片)](https://www.youtube.com/watch?v=YQs6IC-vgmo)
547+
- [ ] Gotcha: 你需要指針到指針的相關知識:
548+
(當你將一個指針當成參數傳到函式時,可能會更改到該指針指向的位置)
549+
這個內容只是為了讓你對指針到指針的概念有個大概的掌握,我其實不推薦使用這種 list 遍歷的方式,閱讀性和可維護性都不是很好。
550+
- [指針到指針](https://www.eskimo.com/~scs/cclass/int/sx8.html)
551+
- [ ] 實作 (我實作了有 tail pounter 和沒有的兩個版本):
552+
- [ ] size() - 回傳在串列中的元素個數
553+
- [ ] empty() - 當串列是空的時,回傳 true
554+
- [ ] value_at(index) - 回傳位在第 n 個索引位置的元素值 (第一個元素開始位置為 0)
555+
- [ ] push_front(value) - adds an item to the front of the list 加入一個元素到串列的前麵
556+
- [ ] pop_front() - 移除前一個元素並回傳其值
557+
- [ ] push_back(value) - 在最後的位置加入元素
558+
- [ ] pop_back() - 移除最後一個元素並回傳其值
559+
- [ ] front() - 取得前一個元素的值
560+
- [ ] back() - 取得後一個元素的值
561+
- [ ] insert(index, value) - 在指定索引插入特定值,而目前指向該索引的元素會指向新插入的值
562+
- [ ] erase(index) - 移除特定索引的節點
563563
- [ ] value_n_from_end(n) - returns the value of the node at nth position from the end of the list
564-
- [ ] reverse() - reverses the list
564+
- [ ] reverse() - 反轉串列
565565
- [ ] remove_value(value) - removes the first item in the list with this value
566566
- [ ] Doubly-linked List
567-
- [Description (video)](https://www.coursera.org/learn/data-structures/lecture/jpGKD/doubly-linked-lists)
568-
- No need to implement
567+
- [描述 (影片)](https://www.coursera.org/learn/data-structures/lecture/jpGKD/doubly-linked-lists)
568+
- 不需要實作
569569

570570
- ### Stack
571571
- [ ] [Stacks (video)](https://www.coursera.org/learn/data-structures/lecture/UdKzQ/stacks)

0 commit comments

Comments
 (0)