My own solutions on leetcode.