摘要:
Given numRows, generate the first numRows of Pascal's triangle.For example, given numRows = 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ] 题意:构造杨辉三角static public List> Generate... 阅读全文
posted @ 2017-02-24 23:38
xiejunzhao
阅读(201)
评论(0)
推荐(0)
摘要:
Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters.Please note that the string does not contain any non-printable characters.Examp... 阅读全文
posted @ 2017-02-24 23:37
xiejunzhao
阅读(96)
评论(0)
推荐(0)

浙公网安备 33010602011771号