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
Differentiate between a constructor and a method in C++.
What do you mean by early binding?
Differentiate between the message and method in c++?
What is c++ namespace?
What are the rules about using an underscore in a c++ identifier?
What is the extraction operator and what does it do?
How a modifier is similar to mutator?
What is a Default constructor?
What is linked list in c++?
What is the default access level?
What is diamond problem in c++?
What it is and how it might be called (2 methods).
Write about the access privileges in c++ and also mention about its default access level?
What information can an exception contain?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?