solutions in leetcode(c++)