I'm not very good at memorizing the sorting algorithm codes. So I usually just draft the process before I write them down. Sometimes the test case isn't good for drafting for they sometimes involve too many steps or just doesn't cover corner cases.
What are the good test cases for drafting each sorting algorithms? It would be nice if there's one test case that can illutrate all algorithms easily.
Aucun commentaire:
Enregistrer un commentaire