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 |
extern static int i func() { i =10; i++; printf("%d \n",i); } main() { i =20; printf("%d \n",i); func(); printf("%d \n",i); }
what is the difference between c and java?
Explain the binary height balanced tree?
What are the features of c languages?
print out of string in this format; 1. "rajesh" 2. \n 3. %d
atoi, which takes a string and converts it to an integer. write a program that reads lines(using getline), converts each line to an integer using atoi and computes the average of all the numbers read. also compute the standard deviation
Write a C program that reads a series of strings and prints only those ending in "ed"
List a few unconditional control statement in c.
what is pointer?
13 Answers HCL, TCS,
What is difference between far and near pointers?
What is meant by inheritance?
why do we use # in c-language?