solutions to problems on leetcode.com