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 buffer and example?
How would perform Pattern Matching in C++?
Write is a binary search tree? Write an algo and tell complexity?
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Explain register storage specifier.
What is the difference between struct and class?
How does code-bloating occur in c++?
What is the prototype of printf function?
How many standards of c++ are there?
Can user-defined object be declared as static data member of another class?
Who discovered c++?
What is polymorphism & list its types in c++?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
We use library functions in the program, in what form they are provided to the program?
What does flush do c++?