Algorithm practice homework , developed by qt & c++