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

Given a single Linked list with lakhs of nodes and length
unknown how do you optimally delete the nth element from the
list?

Answer Posted / vignesh1988i

first create the list of unknown length..... then get the position of the element to be deleted from the user.... the start travelling in the list.... if it encounters the position prescribed by the user ... get the addresses in the list and shift that to the previous node and free this node........


thank u

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the value of uninitialized variable in c?

1029


What is the use of in c?

1025


Explain what is the benefit of using const for declaring constants?

1026


Explain about block scope in c?

1089


Why clrscr is used after variable declaration?

1683


How do we print only part of a string in c?

1020


How many header files are in c?

1031


Why shouldn’t I start variable names with underscores?

1057


What math functions are available for integers? For floating point?

1127


Is malloc memset faster than calloc?

1068


Are pointers integer?

1007


Why do we need a structure?

1037


How many levels of pointers have?

1040


Where are the auto variables stored?

1144


Why is not a pointer null after calling free?

1016