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
What is the best way of making my program efficient?
What is static memory allocation?
What are identifiers c?
What are actual arguments?
can anyone suggest some site name..where i can get some good data structure puzzles???
What is difference between union and structure in c?
what is the format specifier for printing a pointer value?
Explain how can I pad a string to a known length?
how could explain about job profile
Why is it important to memset a variable, immediately after allocating memory to it ?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
How are 16- and 32-bit numbers stored?
How to write a multi-statement macro?
What is a #include preprocessor?
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