摘要: Suppose an array of length n sorted in ascending order is rotated between 1 and n times. For example, the array nums = [0,1,2,4,5,6,7] might become: [ 阅读全文
posted @ 2014-10-18 13:05 Grandyang 阅读(16582) 评论(14) 推荐(1) 编辑
摘要: Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers 阅读全文
posted @ 2014-10-18 04:17 Grandyang 阅读(9834) 评论(2) 推荐(2) 编辑
Fork me on GitHub