Re: hi




Ganga wrote:
> Can anybody tell me how to find out middle node of a link list without
> traversing all the nodes.
you can find that by using two pointers, fast pointer and slow pointer.
Fast pointer will jump two places and at the same time slow pointer
will jump one place. When fast pointer reaches the end......ur slow
pointer will be at the middle node of the linked list.
next time ,as other wise people are saying, post such questions on
comp.programming

.