create an singly linked lists and reverse the lists by
interchanging the links and not the data?
Answer Posted / vaishali naidu
We can achive this using following method:
Use three pointers
First is start pointing to first node.
Second is prev pointing to second node
Third is curr pointing to third node.
a.while(start!=curr)
{
prev->next=start
start->next=NULL;
start=prev;
prev=curr;
curr=curr->next;
}
Is This Answer Correct ? | 13 Yes | 21 No |
Post New Answer View All Answers
Which sorting algorithm is best for large data?
How many sorting are there in data structure?
What can be stored in an arraylist?
Does hashmap maintain insertion order?
Can arraylist store objects?
Can arraylist hold duplicates?
Why do we use a multidimensional array in data structure?
What is the family trees and connection by clause?
What is the difference between data type and data structure?
What is application of data structure?
What is a postfix expression?
What are the Differences between map and hashmap?
Explain the difference between a list and array.
What is thread and types of thread?
What is a sorting algorithm in data structure?