Concept Flow - Delete Node by Value
Start at head
Check if head is null
|Yes
Stop
No
Check if head value == target
|Yes
Delete head, move head to next
No
Traverse list to find node before target
If next node value == target
|Yes
Delete next node by linking current to next's next
Stop
No
Move to next node
↩Back to Traverse
Start from the head node, check if it matches the value to delete. If yes, remove it by moving head. Otherwise, traverse the list to find the node before the target and remove the target by changing links.
