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
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
Can we use clrscr in c++?
What does asterisk mean in c++?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
What are the uses of typedef in a program?
Explain data encapsulation?
What is the use of endl in c++?
What is the difference between ++ count and count ++?
What is implicit conversion/coercion in c++?
How to implement is-a and has-a class relationships?
What are c++ files?
Write some differences between an external iterator and an internal iterator?
How long will it take to learn programming?
Which function cannot be overloaded c++?