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
How do you find the complexity of a selection sort?
Can hashtable have duplicate values?
How do I sort hashset?
What is the non linear data structure?
Differentiate between hashmap and hashtable.
What are the Advantages and disadvantages of Array?
Which is better hashmap or hashtable?
What is the basic of data structure?
What do you mean by structure property in a heap?
Which is faster hashmap or treemap?
How to sort 1 million floating point numbers?
How does linkedhashset work internally?
What is the default value of Array?
In what areas do data structures are applied?
What are the advantages of selecetion sort?