c++ code for leetcode OJ