- Thời gian. $O[n^2]$
- Không gian. $O[n]$
C++Java Python
1 2 3 4 5 6 7 8 9 10 11 12
class Solution {
public:
vector getRow[int rowIndex] {
vector ans[rowIndex + 1, 1];
for [int i = 2; i
C++Java Python
1 2 3 4 5 6 7 8 9 10 11 12
class Solution {
public:
vector getRow[int rowIndex] {
vector ans[rowIndex + 1, 1];
for [int i = 2; i