create an singly linked lists and reverse the lists by
interchanging the links and not the data?
Answer Posted / sanjay rajput
struct node
{
int val;
struct node *next;
};
typedef struct node NODE;
NODE *p,*start;
p=start->next;
while(p!=NULL)
{
p->next=start;
start=p;
p=p->next;
}
| Is This Answer Correct ? | 1 Yes | 10 No |
Post New Answer View All Answers
Define hash table?
Describe tree rotation in avl tree.
Which is the slowest sorting algorithm?
What is binary tree in discrete mathematics?
Is array a linked list?
What is queue example?
What is an object array?
What is stack explain with diagram?
Define a binary tree?
Is vector synchronized?
What is default size of hashmap?
What are binary trees?
What is array and its types?
Define path in a graph?
Describe linear probing with an example.