leetcode: 12 problems solved