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 can I access an I o board directly?
List out few of the applications that make use of Multilinked Structures?
What are the types of c language?
what is the return value (status code) of exit() function.... what the arguments(integer value) passed to it means....
Is there a way to compare two structure variables?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
what is an inline function?
what is array?
What is typedf?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What are derived data types in c?