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

Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.

1063


What is iostream in c++ used for?

973


Is c# written in c++?

923


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

2274


How can I disable the "echo" feature?

1089


What is meant by entry controlled loop?

1060


How many static variables are created if you put one static member into a template class definition?

979


By using c++ with an example describe linked list?

980


How to defines the function in c++?

1050


what are the iterator and generic algorithms.

1883


What does catch(…) mean?

1066


What is time_t c++?

1064


Why would you use pointers in c++?

1095


What is singleton class in c++?

985


What are the characteristics of friend functions?

968