首页 > 其他 > 详细

118 Pascal's Triangle

时间:2015-05-18 07:47:51      阅读:120      评论:0      收藏:0      [点我收藏+]
public class Solution {
    public ArrayList<ArrayList<Integer>> generate(int numRows) {
        ArrayList<ArrayList<Integer>> res = new ArrayList<ArrayList<Integer>>();
        if (numRows == 0) {
            return res;
        }
        
        
        ArrayList<Integer> first = new ArrayList<Integer>();
        first.set(0, 1);
        res.add(first);
        
        for (int i = 1; i < numRows; i++) {
            ArrayList,
        }
    }
}

 

118 Pascal's Triangle

原文:http://www.cnblogs.com/77rousongpai/p/4511017.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!