(oj:leetcode): some more solutions.