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

it is not possible in Single AND double linked list without
traversing from first and not knowing addr of 4..
its possible in circular doubly linked list only........

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is turbo c++ free?

1080


How much is c++ certification?

1053


What is the difference between public and private data members?

1181


What are the uses of c++ in the real world?

1038


Where the memory to the static variables is allocated?

1061


In a function declaration what does extern means?

1053


Is overriding possible in c++?

1017


What is time h in c++?

1139


What do you mean by global variables?

1076


What are 2 ways of exporting a function from a dll?

1202


Explain what you mean by a pointer.

1104


Distinguish between a # include and #define.

1151


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

1111


Name four predefined macros.

1040


What is array in c++ example?

1114