Shortcut for chapter specific information

Tuesday, April 19, 2011

9th, 10th (C), 11th (C) writing of insertion sort

I thought I was right.  In fact.  I made a fatal mistake in line 6.

I wrote A[i] = key.

instead of A[i+1] = key.

Just think what happens when the while loop exits?



33_P

No comments:

Post a Comment