Concept Flow - Find Middle Element of Linked List
Start: head points to first node
Initialize two pointers: slow and fast at head
Loop: fast != NULL and fast->next != NULL?
No→Stop
Yes
Move slow by 1 node
Move fast by 2 nodes
Repeat loop
slow now points to middle node
Return slow->data as middle element
Use two pointers moving at different speeds to find the middle node in one pass.
