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 typedef?
What is a c token and types of c tokens?
Give me basis knowledge of c , c++...
WHOT IS CHAR?
What is const volatile variable in c?
main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }
Why is c not oop?
how many keywords do C compile?
7 Answers Microsoft, Practical Viva Questions,
How can I increase the allowable number of simultaneously open files?
write a program for even numbers?
how to get starting address of a running C program
In C programming, what command or code can be used to determine if a number of odd or even?