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 is a block in c++?
Define stacks. Provide an example where they are useful.
What are c++ stream classes?
What is the latest c++ version?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
Where is atoi defined?
Explain explicit container.
What is operators in c++?
What does new return if there is insufficient memory to make your new object?
What is null pointer and void pointer and what is their use?
What is a class definition?
What is oop in c++?
How can you differentiate between inheritance and implementation in c++?
What is an object in c++?
Is c++ a programming language?