my code for leetcode OJ problems