Something is wrong with compiler. @interviewBit Team need to relook it


#1

module.exports = { 

//param A : integer
//return a array of integers
getRow : function(A){
if(A == 0) return [1];
if(A == 1) return [1,1];
const arr = [1,1]

    while(A>1) {
        let temp = arr[0];
        for(let i=1;i<arr.length;i++) {
            let temp1 = arr[i];
            arr[i] = temp + arr[i];
            temp = temp1;
        }
        arr.push(1);
        A--;
    }
    return arr;
}

};