Find the middle node in the linked list??
(Note:Do not use for loop, count and count/2)

Answer Posted / vadivel

U mean without any looping statements r just for loop?????
It can be done in a single traversal using Hare n turtle
method as said above using a for or while loop.....
Without using looping statements d list can't be traversed..
Plz make the question clear.....

Is This Answer Correct ?    3 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

3651


What are the primitive data types in c?

570


Why does notstrcat(string, "!");Work?

640


any "C" function by default returns an a) int value b) float value c) char value d) a & b

663


What is unsigned int in c?

551






Explain zero based addressing.

604


Explain the use of keyword 'register' with respect to variables.

588


Are there namespaces in c?

566


What is null pointer in c?

589


What is null pointer constant?

592


Explain what are the different file extensions involved when programming in c?

630


What is the deal on sprintf_s return value?

639


What is typedef?

664


I have seen function declarations that look like this

598


Why is c fast?

601