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 / aaptuster
Cant we simply check it using 10 dereferencing.
ptr -> ptr -> ptr -> ptr -> ->ptr and so on...
This could be generalized for n, as we could generate this
command string on the fly and execute the command ..
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what are Access specifiers in C++ class? What are the types?
What is the full form nasa?
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
What programming language should I learn first?
Is c++ a float?
What is data type in c++?
Write a program to find the reverse Fibonacci series starting from N.
Distinguish between new and malloc and delete and free().
What is a constant reference?
Define Virtual function in C++.
Why cstdlib is used in c++?
What is friend class in c++ with example?
What is an undefined behavior and sequence points
Is c++ the most powerful language?
What is setiosflags c++?