Given a single Linked list with lakhs of nodes and length
unknown how do you optimally delete the nth element from the
list?
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 |
What is the translation phases used in c language?
program to find middle element of linklist?
WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c file management?
28 Answers 3D PLM, Code Studio, Deltech, IBM,
Three major criteria of scheduling.
Hi Every one...........I have been selected for the SBI Clerk. But i m one month Pregnanat. So anyone please suggest me, is they take any objection on my joining .
4 Answers State Bank Of India SBI,
Why do we use c for the speed of light?
why wipro wase
I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?
How do you define structure?
Compare and contrast compilers from interpreters.
sir i wanted to know how we wap in c to add numbers without using arithmetic operator in which digits are entered by user?
why we use pointer in c