C++ solutions for leetcode problems