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 / ashutosh
NO, it won't work.
because, after the wile loop, pos is pointing to the last
element NOT 10th last. So, you have to go back 10 elements.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is an orthogonal base class in c++?
What is long in c++?
What is virtual destructor ans explain its use?
Is c++ vector dynamic?
Why pointer is used in c++?
What is polymorphism and its type in c++?
What are the different types of polymorphism in c++?
Search for: what is pair in c++?
What is private, public and protected inheritance?
What is object file? How can you access object file?
Are iterators pointers?
Is ca high or low level language?
What is meant by forward referencing and when should it be used?
How the keyword struct is different from the keyword class in c++?
Can I have a reference as a data member of a class? If yes, then how do I initialise it?