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

write a program to create a sparse matrix using dynamic memory allocation.

4846


Define and explain about ! Operator?

957


Explain how can I convert a number to a string?

1105


What is realloc in c?

1023


What is c language in simple words?

1023


What is modeling?

1003


Explain #pragma statements.

982


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

3918


what is ur strangth & weekness

2334


swap 2 numbers without using third variable?

1086


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1073


What is difference between %d and %i in c?

1184


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5897


What is .obj file in c?

1026


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2348