Question d’entretien chez IBM

reverse a linked list

Réponses aux questions d'entretien

Utilisateur anonyme

18 avr. 2011

wrote the program to do the same

Utilisateur anonyme

15 mai 2011

*tmp,*temp=start,*t; while(temp->next!=NULL) { tmp=temp->next; if(temp==start) temp->next=NULL; else temp->next=t; t=temp; temp=tmp; } temp=start;

Utilisateur anonyme

15 mai 2011

*tmp,*temp=start,*t; while(temp->next!=NULL) { tmp=temp->next; if(temp==start) temp->next=NULL; else temp->next=t; t=temp; temp=tmp; } start=temp;