Concept Flow - Delete Node by Value
Start at head
Check if head is null?
Yes→List empty, stop
No
Check if head value == target?
Yes→Delete head, update head
No
Traverse list with prev and current
Check current value == target?
Yes→Delete current node
No
Move prev and current forward
Back to Traverse
End of list reached, target not found
Stop
↩Back to Traverse
Start from the head, check if the node to delete is the head, else traverse the list to find and delete the node with the target value.
