leetcode "Triangle" 3/23/2014