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 frozenset?
Which is the parent class of abstractsequentiallist class?
List out the basic operations that can be performed on a stack?
What do you mean by garbage collection?
How do you sort a map by key?
What is data type explain?
How do I use quick sort?
Define graph traversals?
State the advantages of using infix notations?
What is the use of hashtable?
Explain set interface?
What is the most used data structure?
What data structure underlies a python list?
What is breadth first tree?
Which is the parent class of list