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 is collections singletonlist?
Do you know what is linear search?
What is the Insertion Sort Code?.
What is circular linked list?
What is mean by sorting?
What is the non linear data structure?
How hashmap increases its size?
Explain linked list in short.
What is complete binary tree in data structure?
What is a minimum spanning tree?
Why is hashmap faster than arraylist?
Write a program for reversing the Single Linked List?
What are the two types of data?
What is bubble sort algorithm in data structure sort and searching?
Is copyonwritearraylist thread safe?