You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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
0 commit comments