solutions to the problems on leetCode OJ