Sorting entire link list using selection sort and insertion
sort and calculating their time complexity



Sorting entire link list using selection sort and insertion sort and calculating their time complex..

Answer / shiju

insertion sort took more time, because it done after
complete selection sort...

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More C Code Interview Questions

What are the following notations of defining functions known as? i. int abc(int a,float b) { /* some code */ } ii. int abc(a,b) int a; float b; { /* some code*/ }

1 Answers  


void main() { int i=10, j=2; int *ip= &i, *jp = &j; int k = *ip/*jp; printf(ā€œ%dā€,k); }

1 Answers  


main() { char c=' ',x,convert(z); getc(c); if((c>='a') && (c<='z')) x=convert(c); printf("%c",x); } convert(z) { return z-32; }

1 Answers  


how to delete an element in an array

2 Answers   IBM,


main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }

9 Answers   CSC, GoDB Tech, IBM,






program to Reverse a linked list

12 Answers   Aricent, Microsoft, Ness Technologies,


what will be the position of the file marker? a: fseek(ptr,0,SEEK_SET); b: fseek(ptr,0,SEEK_CUR);

2 Answers  


main() { int a=2,*f1,*f2; f1=f2=&a; *f2+=*f2+=a+=2.5; printf("\n%d %d %d",a,*f1,*f2); }

6 Answers  


main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); }

2 Answers   Wipro,


Program to Delete an element from a doubly linked list.

4 Answers   College School Exams Tests, Infosys,


main() { int i=400,j=300; printf("%d..%d"); }

3 Answers  


Predict the Output: int main() { int *p=(int *)2000; scanf("%d",2000); printf("%d",*p); return 0; } if input is 20 ,what will be print

2 Answers  


Categories