i have considered it (n/2+1)th and didn't bothered much :P
On Mon, Jul 11, 2011 at 4:57 PM, Anika Jain <[email protected]> wrote: > *if i have to write a code for finding middle element in a linked list.. > then for even length linked which will be the middle element both n/2-1 and > n/2+1 or just n/2+1??? > > if its both then how can i make my function two elements?? > * > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- best wishes!! Vaibhav Shukla DU-MCA -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
