Insertion Sort 73 (C): Bad
Insertion Sort 74 (C): Good
Insertion Sort w Sentinel 14 (C): Good
Bubble Sort 2 (C): Bad
Selection Sort 34 (C): Good
Merge Sort 16 (C): Bad
Merge Sort 17 (C): Bad
Linear Search 7 (C): Bad
Binary Search 6 (C): Bad
Binary Insertion Sort 5 (C): Bad
Binary Insertion Sort 5 (C): Bad
There were many one-off mistakes. For now, I also feel it is a bit beyond my cognitive load to write 8 algorithms a day. The feeling of knowing how they work is great. Though I think I should slow down before I introduce the 9th algorithm into the set. Let's reduce the amount of errors first. Preferably 0 per day.
To save time, I'll also skip the requirement of rewriting. Because the cost of a single mistake is too high. Though, I will force myself to check the code 3+ times in my head from now on.
No comments:
Post a Comment