Need help to speed up algorithm

Printable View