type
status
date
slug
summary
tags
category
icon
password
0. Structure of a Singly Linked List
1. Move pointers
0:
1 -> None 2 -> 3 -> 4 -> 5 -> NULL
1:
2 -> 1 -> None 3 -> 4 -> 5 -> NULL
2:
3 -> 2 -> 1 -> None 4 -> 5 -> NULL
3:
4 -> 3 -> 2 -> 1 -> None 5 -> NULL
4:
5 -> 4 -> 3 -> 2 -> 1 -> None
2. Head Insertion
0:
1 -> 2 -> 3 -> 4 -> 5 -> NULL
1:
2 -> 1 -> 3 -> 4 -> 5 -> NULL
2:
3 -> 2 -> 1 -> 4 -> 5 -> NULL
3:
4 -> 3 -> 2 -> 1 -> 5 -> NULL
4:
5 -> 4 -> 3 -> 2 -> 1 -> NULL
- Author:Parker Chen
- URL:www.parkerchenca.com/article/110f0ccf-d7f8-80fb-b9e3-c5e41ba58e39
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!
Relate Posts