need an algorithm

Printable View