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

Search for: what is pair in c++?

1068


In the derived class, which data member of the base class are visible?

1066


Explain rethrowing exceptions with an example?

977


Write my own zero-argument manipulator that should work same as hex?

996


How can I learn dev c++ programming?

977


What are stacks?

1007


What is the best way to take screenshots of a window with c++ in windows?

992


Give example of a pure virtual function in c++?

1082


What are the advantages of using pointers in a program?

1092


List the issue that the auto_ptr object handles?

965


In a function declaration what does extern means?

982


Is swift a good first language?

1000


Is c++ primer good for beginners?

984


What is math h in c++?

1091


What character terminates all character array strings a) b) . c) END

1202