create an singly linked lists and reverse the lists by
interchanging the links and not the data?
Answer Posted / mayur bagal
struct node{
int data;
node * next;
};
node *pt2=NULL:
while(root!=NULL)
{
node * temp = root->next;
root->next= pt2;
pt2=root;
root = temp;
}
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Mention the data structures which are used in graph implementation.
How does quick sort work?
Is data structures and algorithms important?
Explain set interface?
If you do not initialize an array what will happen?
Write an algorithm for inserting and deleting an element from doubly linked list?
What is the difference between a hashmap and hashtable?
Explain the term base case?
What is unbounded queue?
What is inserting in data structure?
Which file contains the definition of member functions?
What are the applications of stack?
Which interfaces are implemented by concurrentskiplistset?
Why do we use data structures?
What do you understand by stable sort?