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→Remove head, update head
No
Traverse list with prev and current
Check current value == target?
Yes→Remove current by linking prev to current.next
No
Move prev and current forward
Back to check current value
Reached end without finding target
Stop
↩Back to check current value
Start from the head, check if the node to delete is the head, else traverse the list to find and remove the node by updating links.
