Some problems from http://leetcode.com/