摘要: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文
posted @ 2017-02-10 18:01 细雨落花 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5,Return 例 i = 5的生成过程: i = 0 row = [1]; 内层循环不执行; allrows 阅读全文
posted @ 2017-02-10 12:13 细雨落花 阅读(133) 评论(0) 推荐(0) 编辑