create an singly linked lists and reverse the lists by
interchanging the links and not the data?
Answer Posted / jishu
This is a more efficient version of the program given in ans 2.
p=head;
result=NULL;
while(p!=NULL)
{
temp=p->next;
p->next=result;
result=p;
p=temp;
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What sort of serious problems have you experienced, and how have you handled them?
List the basic operations carried out in a linked list?
What is list and types of list?
Which is better merge or quick sort?
Why is sorting important?
What are the issues that hamper the efficiency in sorting a file?
what are the applications that use Linked lists?
What is meant by deque?
What do you mean by breadth first search (bfs)?
Why do we need sorting?
What is unmodifiable list?
Explain the uses of matrix with an example?
Write the stack overflow condition.
What is dynamic array how is it created?
Explain pre-order and in-order tree traversal.