Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the slowest sorting algorithm?

898


How to find the missing element in integer array of 1 to 7?

942


Define an algorithm.

962


What is the difference between a hashmap and hashtable?

807


What is the application of queue?

892


Does concat mutate array?

906


Explain what are the methods available in storing sequential files ?

921


What is difference between an Array and ArrayList?

999


What are the disadvantages of representing a stack or queue by a linked list?

919


Have you ever used HashTable and Directory?

975


What is basic data structure?

888


When would you use a hashmap?

906


Is an arraylist a vector?

955


What is difference between while and do while?

863


What is ds heap sort?

899