[Tutor] Merge Sort Algorithm

Neil Cerutti neilc at norwich.edu
Thu Mar 30 10:49:08 EDT 2017


On 2017-03-30, Elo Okonkwo <elo.okonkwo at gmail.com> wrote:
> Thanks so much everyone.
>
> I've figured it out. It was the recursive bit that got me
> confused, its a bit difficult debugging recursive functions.

It doesn't have to be!

I recommend debugging recursive functions with small,
easy-to-think-about test cases, and slowly build them up.

Do not try to debug by starting with a typical case.

-- 
Neil Cerutti



More information about the Tutor mailing list