Angular build enterprise-level collaboration platform

<section>课程地址: http://icourse8.com/AngularQiYeJi.html </section>

Chapter information

Chapter 1 Course Introduction
Chapter 2 to create a page with Angular Material Components
Chapter 3 Angular Animation
Chapter 4 Angular core concept review and improve
Chapter 5 Rxjs common operator
Chapter 6 Angular the reactive programming
Chapter 7 Using Redux management application state
Chapter 8 Angular test
Chapter 9 Lessons Learned

var generate = function(numRows) {
    let arr = []
    for(let i = 1; i <= numRows; i++) {
        let row = []
        for(let j = 0; j < i; j++) {
            if(j == 0 || j == i - 1) {
                row.push(1)
            } else {
                row.push(arr[i - 2][j - 1] + arr[i - 2][j])      
            }
        }
        arr.push(row)
    }

    return arr
};

Guess you like

Origin blog.51cto.com/14127893/2412125