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 abstract class in c++?
Define a constructor - what it is and how it might be called (2 methods)?
Differentiate between a constructor and a destructor in c++.
What is the most common mistake on c++ and oo projects?
daily Routine of father
How would you differentiate between a pre and post increment operators while overloading?
What is c++ manipulator?
Why do we need function?
What are maps in c++?
What is the use of endl in c++?
What is a map in c++?
In a function declaration what does extern means?
What is a dynamic binding in c++?
What is a node class in c++?
What is an iterator class in c++?