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...

Can we remove an element in a single linked list without
traversing?
Lets suppose the link list is like this
1 2 3 4 5 6

We need to remove 4 from this list (without traversing from
beginning) and the final link list shud be 1 2 3 5 6

only thing we know is the pointer to element "4". How can
we remove "4" and link "3" to "5"?

Answer Posted / vishal jagani

yes u can it link list(doubly),....

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are destructors?

960


List the issue that the auto_ptr object handles?

987


What is meant by forward referencing and when should it be used?

969


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

1066


In a function declaration, what does extern mean?

1016


Why is the function main() special?

1057


Explain the properties and principles of oop.

981


Why do we use classes in programming?

1002


What are the uses of typedef in a program?

1050


Which function cannot be overloaded c++?

1063


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

1030


What is a c++ class?

1059


What is the difference between the functions rand(), random(), srand() and randomize()?

1236


Is it possible to provide special behavior for one instance of a template but not for other instances?

1083


Explain the concept of copy constructor?

999