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 the most common mistake on c++ and oo projects?
what you know about c++?
How new/delete differs from malloc()/free?
What are the four partitions in which c++ compiler divides the ram?
What is the difference between the functions memmove() and memcpy()?
Name the implicit member functions of a class.
Why c++ is the best language?
Can I learn c++ without learning c?
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
What are the data types in c++?
You run a shell on unix system. How would you tell which shell are you running?
What is the difference between while and do while loop?
What is class syntax c++?
What is the sequence of destruction of local objects?
What are the advantages of using a pointer?