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 / atul bodke

correction in prev answer ...
i saw it after posting ... :)
correction in while loop ...
while(ptr!=null)
{
p[(n++)%10]=ptr;
ptr=ptr->next;
}
................................

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstract class in c++?

1135


Define a constructor - what it is and how it might be called (2 methods)?

1226


Differentiate between a constructor and a destructor in c++.

1052


What is the most common mistake on c++ and oo projects?

1020


daily Routine of father

1458


How would you differentiate between a pre and post increment operators while overloading?

1196


What is c++ manipulator?

1028


Why do we need function?

1106


What are maps in c++?

1005


What is the use of endl in c++?

1062


What is a map in c++?

1292


In a function declaration what does extern means?

1106


What is a dynamic binding in c++?

1002


What is a node class in c++?

1114


What is an iterator class in c++?

1193