Vectors/ 2D vectors ques

Problem Statement
You are given an integer N. Your task is to return a 2-D ArrayList containing the pascal’s triangle till the row N.
A Pascal’s triangle is a triangular array constructed by summing adjacent elements in preceding rows. Pascal’s triangle contains the values of the binomial coefficient. For example in the figure below.

For example, given integer N= 4 then you have to print.
how to approach this ques

can i have a chat with the TA’s.

hi @anshumansingh081hitece2020_44bc7fc9cc910828 refer