Shortcut for chapter specific information

Monday, April 25, 2011

Daily Practice 20110425

Insertion sort: 38th and 39th writings (C) : 38th - disaster, got syntax wrong for initializing an array and assigned a wrong variable to k.  Make it your habit to think the index order.  39th - get it right.

Selection sort: 8th writing and 9th writings (C) : 8th - wrong, change the sign of comparison.  So it sorts the other way.  9th is good.

Found myself not very focused today.

33_P

No comments:

Post a Comment