leetcode and c++ learning