DEV Community

Discussion on: Merge Sort Quick Reference

Collapse
 
ovieokeh profile image
Ovie Okeh

I found the most difficult part of implementing it was actually the merge function. After that, it's almost ridiculously easy.

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y • Edited

I admit my pseudo-code ignores some of the details, making it look easier than it is.

My front function has to deal with the end of a list and provider a proper comparison when no item is available. It can be done this way.