```
class Solution(object):
def minimumTotal(self, triangle):
for r in range(len(triangle)-2, -1, -1):
for c in range(len(triangle[r])):
triangle[r][c] += min(triangle[r+1][c],
triangle[r+1][c+1])
return triangle[0][0]
```