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 |
How to print %d in output
where do we use structure pointer?
What are the key features in c programming language?
Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /).
why division operator not work in case of float constant?
How can I handle floating-point exceptions gracefully?
What is the scope of static variables?
What is a far pointer?What is the utility?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
Explain what is #line used for?
Why can't we initialise member variable of a strucutre
Explain Doubly Linked Lists?