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
Define a binary search tree?
Explain the Linked List
What is array and its types in data structure?
Can you use Bubble Sort To sort the number of elements.
What is the default capacity of hashmap?
Write a program using mergesort technique.
Mention the data structures which are used in graph implementation.
What is a B tree?
Define degree of the node?
How do you solve a selection sort?
Is binary tree a bst?
Which is better selection or bubble sort?
What is top in stack?
What are hash tables good for?
Define hash table?