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

NO, it won't work.

because, after the wile loop, pos is pointing to the last
element NOT 10th last. So, you have to go back 10 elements.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is buffer and example?

940


How would perform Pattern Matching in C++?

1172


Write is a binary search tree? Write an algo and tell complexity?

970


A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

3622


Explain register storage specifier.

980


What is the difference between struct and class?

1423


How does code-bloating occur in c++?

1134


What is the prototype of printf function?

1115


How many standards of c++ are there?

1049


Can user-defined object be declared as static data member of another class?

966


Who discovered c++?

984


What is polymorphism & list its types in c++?

1010


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

1006


We use library functions in the program, in what form they are provided to the program?

1034


What does flush do c++?

1016