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 does each entry in the link list called?
What is a queue in data structure?
Where is data structure used?
What are the benefits of using arrays?
Mention the data structures which are used in graph implementation.
How to create an Array?
What does stack top do?
Tell me how to find middle element of linked list in one pass?
What are the Difference between tcp and udp?
Can we store a string and integer together in an array?
Do you know how to find if linked list has loop?
Can map contain duplicate keys?
What do you understand by doubly linked list?
What is time complexity of arrays sort?
Explain the common uses of tree database.