Given an index k, return the kth row of the Pascal’s triangle. Pascal’s triangle : To generate A[C] in row R, sum up A’[C] and A’[C-1] from previous row R - 1.
First the new array with name triangle will create and then using for loop iteration in row and then create currentRow array list and iterating col and then adding left and right so find the pascal ...