Concept Flow - Delete Node by Value
Start at head
Is head null?
Yes→End: List empty
No
Is head value == target?
Yes→Delete head
Update head
Traverse list
Find node with target value?
No→End: Value not found
Yes
Delete node by linking previous to next
End
Start from the head node, check if it matches the value to delete. If yes, remove head. Otherwise, traverse to find the node and remove it by adjusting links.
