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
Can arraylist store objects?
How does a heap sort work?
How does hashset maintain order?
What does a bubble chart show?
Why do we use dynamic arrays?
What is the difference between arraylist and hashmap?
Will it create any problem if we add elements with key as user defined object into the treemap?
Why is it called bubble sort?
Can we put null key in hashmap?
What do you mean by level of the tree?
how to add an item to the beginning of the list?
Define non-terminal nodes in a tree?
List the data structures which are used in hierarchical data model.
How do you sort an arraylist in descending order?
What is data type with example?