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
What are examples of structures?
Why is c still so popular?
Why does this code crash?
What is chain pointer in c?
Why do we use namespace feature?
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
What is time null in c?
c program to compute AREA under integral
Explain the difference between call by value and call by reference in c language?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
What is hashing in c language?
What is getch() function?
Explain what is a const pointer?
Write a program of advanced Fibonacci series.
How do I get a null pointer in my programs?