摘要: leetcode - Pascal's TriangleGivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2... 阅读全文
posted @ 2015-06-19 17:51 cnblogshnj 阅读(99) 评论(0) 推荐(0)
摘要: leetcode - Min StackDesign a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto st... 阅读全文
posted @ 2015-06-19 16:01 cnblogshnj 阅读(99) 评论(0) 推荐(0)