Need help with this algorithm

Printable View