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 / jishu

This is a more efficient version of the program given in ans 2.

p=head;
result=NULL;

while(p!=NULL)
{
temp=p->next;

p->next=result;
result=p;

p=temp;

}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does arraylist guarantee insertion order?

956


Why it is said that searching a node in a binary search tree is efficient than that of a simple binary tree?

1021


Is arraylist a class?

1059


Define b-tree of order m?

994


What are different types of sorting techniques?

984


What is array and its types with example?

962


Can you provide some implementation of a dictionary having large number of words?

1153


Explain the Complete structure of hashmap along with the basic coding of the hashmap internal implementation.

1152


Why entry interface is used in map?

981


in tree construction which is the suitable efficient data structure? (Array, linked list, stack, queue)

1291


Differentiate between collection and collections.

1142


Is pointer a variable in data structure?

1372


Why we use linked list?

953


Run time memory allocation is known as ?

1040


How to excel in data structures and algorithms?

998