Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / santhoshr

It wont work exactly if the no of nodes is not given!!! So
better answer is having two pointers from first itslf.
And like this , another question is there,
to find the pth node from last!! That too haas the same logic!!!

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best way of making my program efficient?

1083


What is static memory allocation?

1240


What are identifiers c?

1142


What are actual arguments?

1155


can anyone suggest some site name..where i can get some good data structure puzzles???

2157


What is difference between union and structure in c?

1243


what is the format specifier for printing a pointer value?

1072


Explain how can I pad a string to a known length?

1249


how could explain about job profile

1987


Why is it important to memset a variable, immediately after allocating memory to it ?

2133


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1958


How are 16- and 32-bit numbers stored?

1326


How to write a multi-statement macro?

1099


What is a #include preprocessor?

1222


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

1305