filmov
tv
How to reverse a linked list(singly LL) using three pointers?

Показать описание
#AshokSoftwareDeveloper
1. Initialize 3 pointers.
Cn is head
Pn is null
Nn is null
2. Repeat until Cn is not null
Pn is Cn
Cn is Nn
1. Initialize 3 pointers.
Cn is head
Pn is null
Nn is null
2. Repeat until Cn is not null
Pn is Cn
Cn is Nn