Concept Flow - Creating a Singly Linked List from Scratch
Start: Empty List
Create new node with data
Is list empty?
No→Traverse to last node
|Yes
Set head to new node
Done: List updated
We start with an empty list, create a new node, check if the list is empty, if yes set head to new node, else traverse to last node and link new node there.
