Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Differentiate between a constructor and a method in C++.

1003


What do you mean by early binding?

1024


Differentiate between the message and method in c++?

1021


What is c++ namespace?

1158


What are the rules about using an underscore in a c++ identifier?

1101


What is the extraction operator and what does it do?

1039


How a modifier is similar to mutator?

1117


What is a Default constructor?

1514


What is linked list in c++?

1093


What is the default access level?

1034


What is diamond problem in c++?

958


What it is and how it might be called (2 methods).

1113


Write about the access privileges in c++ and also mention about its default access level?

1013


What information can an exception contain?

1100


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

1093