In much of the Western universe, it is named after the French mathematician Blaise Pascal, although other mathematicians study it centuries before him in India, Persia (Iran), China, Germany, and Italy. The entry in each row are numbered from the left beginning with K = 0 and are normally staggered relative to the numbers in the adjacent rows. In Italy, Pascal's triangle is referred to as Tartaglia's triangle, named for the Italian algebraist Niccolò Fontana Tartaglia (1500–1577), who published six rows of the triangle in 1556.Gerolamo Cardano, also, published the triangle as well as the additive and multiplicative rules for constructing it in 1570.Pascal's Traité du triangle arithmétiqueThe triangle was later named after Pascal by Pierre Raymond de Montmort (1708) who named it" table de M. Pascal pour les combinaisons"(French: table of Mr. Pascal for combinations) and Abraham de Moivre (1730) who named it" Triangulum Arithmeticum PASCALIANUM"

COMING SOON!

```
class Solution {
public:
vector<int> getRow(int rowIndex) {
// Start typing your C/C++ solution below
// DO NOT write int main() function
vector<int> row[2];
row[0].resize(rowIndex+1);
row[1].resize(rowIndex+1);
row[0][0] = 1;
int T1 = 1, T2 = 0;
for (int i = 1; i <= rowIndex; i++) {
T1 ^= 1, T2 ^= 1;
row[T2][0] = 1;
for (int j = 1; j < i; j++) {
row[T2][j] = row[T1][j-1] + row[T1][j];
}
row[T2][i] = 1;
}
return move(row[T2]);
}
};
```