Category Archives: Uncategorized

Segregate even and odd numbers in Linked List

Algorithm 1) If head is NULL or one nodes in linked list return. 2) Move the end pointer to end of LL and count the number of nodes in list. 3) Update the head pointer to first even node in … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment