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 |
Is it acceptable to declare/define a variable in a c header?
4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
How to Throw some light on the splay trees?
Explain what is the difference between null and nul?
write a C program to print the program itself ?!
Code for calculating square root without using library function, of math.h
Function shall sum members of given one-dimensional array. However, it should sum only members whose number of ones in the binary representation is higher than defined threshold (e.g. if the threshold is 4, number 255 will be counted and 15 will not) - The array length is arbitrary - output the results to the stdout
main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }
What is the difference between test design and test case design?
What is a const pointer in c?
Design a program using an array that lists even numbers and odd numbers separately from the 12 numbers supplied by a user.
what is an inline function?