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
Simple Tree TraversalRust Notes 4
Loading...