linked-list
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linked-list [July 27, 2026 at 13:51] – Ivan Janevski | linked-list [August 22, 2026 at 15:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 28: | Line 28: | ||
| | Search | O(n) | | | Search | O(n) | | ||
| + | ## Element | ||
| + | ```c | ||
| + | typedef struct list_node list_node_t; | ||
| + | struct list_node { | ||
| + | list_node_t *ln_prev; | ||
| + | list_node_t *ln_next; | ||
| + | void *ln_data; | ||
| + | }; | ||
| + | ``` | ||
| + | ## Structure | ||
| + | |||
| + | ```c | ||
| + | typedef struct { | ||
| + | node_t *l_head; | ||
| + | node_t *l_tail; | ||
| + | } list_t; | ||
| + | ``` | ||
| + | |||
| + | ## Create | ||
| + | ## Destroy | ||
| + | ## Append | ||
| + | ## Prepend | ||
linked-list.1785160296.md.gz · Last modified: by Ivan Janevski
