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

What sort of serious problems have you experienced, and how have you handled them?

908


List the basic operations carried out in a linked list?

991


What is list and types of list?

812


Which is better merge or quick sort?

900


Why is sorting important?

824


What are the issues that hamper the efficiency in sorting a file?

947


what are the applications that use Linked lists?

845


What is meant by deque?

865


What do you mean by breadth first search (bfs)?

939


Why do we need sorting?

799


What is unmodifiable list?

891


Explain the uses of matrix with an example?

954


Write the stack overflow condition.

994


What is dynamic array how is it created?

834


Explain pre-order and in-order tree traversal.

888