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 / ravindra

simple,

in case the list has say 90 elements, then for every 10
elements, he is writing to the array. though the array size
is 10, this is done by saying pos%10.
thus when the list is iterated he just substracts 10 from
the pos and then does %10 since he has to factor in, that
array starts from 0 and not from 1 :)

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

1065


What is istream c++?

1267


Why do we need runtime polymorphism in c++?

1074


What jobs can you get with a c++ certification?

1105


What is an arraylist c++?

1273


what are Operators and explain with an example?

1225


How can you link a c++ program to c functions?

1142


Explain the differences between list x; & list x();.

1064


How to tokenize a string in c++?

1112


Explain the difference between struct and class in terms of access modifier.

1225


Is there finally in c++?

1150


Write about the role of c++ in the tradeoff of safety vs. Usability?

1128


How is data hiding achieved in c++?

1143


Differentiate between a template class and class template in c++?

1142


Difference between an inspector and a mutator

1391