class Solution:
def getRow(self, rowIndex: int) -> List[int]:
a = [[1], [1,1]]
if rowIndex <=1:
return a[rowIndex]
for i in range(1, rowIndex):
b = [1]
for j in range(len(a[i])-1):
b.append(a[i][j]+ a[i][j+1] )
b.append(1)
a.append(b)
return a[rowIndex]
Differences of the permutations | Doctor's Secret |
Back to School | I am Easy |
Teddy and Tweety | Partitioning binary strings |
Special sets | Smallest chosen word |
Going to office | Color the boxes |
Missing numbers | Maximum sum |
13 Reasons Why | Friend's Relationship |
Health of a person | Divisibility |
A. Movement | Numbers in a matrix |
Sequences | Split houses |
Divisible | Three primes |
Coprimes | Cost of balloons |
One String No Trouble | Help Jarvis! |
Lift queries | Goki and his breakup |
Ali and Helping innocent people | Book of Potion making |