Memory is not a constraint. In a single iteration(NOTE: you
can't go back), how will you find out the 10th last
node/item in a linked list.

Answer Posted / atul bodke

correction in prev answer ...
i saw it after posting ... :)
correction in while loop ...
while(ptr!=null)
{
p[(n++)%10]=ptr;
ptr=ptr->next;
}
................................

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

554


Can we use clrscr in c++?

522


What does asterisk mean in c++?

576


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

627


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

545






What are the uses of typedef in a program?

603


Explain data encapsulation?

600


What is the use of endl in c++?

587


What is the difference between ++ count and count ++?

571


What is implicit conversion/coercion in c++?

642


How to implement is-a and has-a class relationships?

576


What are c++ files?

568


Write some differences between an external iterator and an internal iterator?

575


How long will it take to learn programming?

580


Which function cannot be overloaded c++?

573