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
Search for: what is pair in c++?
In the derived class, which data member of the base class are visible?
Explain rethrowing exceptions with an example?
Write my own zero-argument manipulator that should work same as hex?
How can I learn dev c++ programming?
What are stacks?
What is the best way to take screenshots of a window with c++ in windows?
Give example of a pure virtual function in c++?
What are the advantages of using pointers in a program?
List the issue that the auto_ptr object handles?
In a function declaration what does extern means?
Is swift a good first language?
Is c++ primer good for beginners?
What is math h in c++?
What character terminates all character array strings a) b) . c) END