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
How do I start a c++ project?
Declare a class vehicle and make it an abstract data type.
What is setbase c++?
What are the advantages of early binding?
Is it possible to write a c++ template to check for a function's existence?
Which is the best c++ compiler for beginners?
Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?
How does java differ from c and c++?
What is a c++ object?
What is the use of lambda in c++?
What is switch case in c++ syntax?
What language is a dll written in?
Where must the declaration of a friend function appear?
Who made c++?
What is a tree in c++?