Algorithms question, is my solution correct?

Printable View