C++ algorithm Daquan.pdf