create an singly linked lists and reverse the lists by
interchanging the links and not the data?
Answer Posted / vijayan
struct node{
int data;
node * next;
};
node *pt1,*pt2=NULL:
while(root!=NULL)
{
pt1=root;
root=root->next;
pt1->next=pt2;
pt2=pt1;
}
| Is This Answer Correct ? | 31 Yes | 3 No |
Post New Answer View All Answers
What are the major data structures used in the network data model?
What is a multidimensional array?
Write a program using mergesort technique.
How to cut or remove an element from the array?
What is the use of data structure?
What is a string or array type?
Mention some drawbacks of the linked list.
Is queue fifo or lifo?
Is map a data structure?
Why do we need a data structure?
What is array and structure?
What do you mean by balance factor of a node in avl tree?
Can we put null value in hashmap?
What is the best case for bubble sort?
What is an array vs list?