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

When one must use recursion function? Mention what happens when recursion functions are declared inline?

1190


How can you create a virtual copy constructor?

1085


Can I create my own functions in c++?

1086


What is the use of bit fields in structure declaration?

984


Define linked lists with the help of an example.

1024


Write about the members that a derived class can add?

969


How to give an alternate name to a namespace?

1084


What is scope in c++ with example?

1111


What is the difference between an external iterator and an internal iterator?

1099


What does new return if there is insufficient memory to make your new object?

1031


What is the type of 'this' pointer? When does it get created?

950


Can we use this pointer inside static member function?

1071


Who invented turbo c++?

1068


Can circle be called an ellipse?

1076


What is else syntax in c++?

1200