intminimumTotal(vector<vector<int>>& triangle){ int high = triangle.size(); if (!high)return0; for (int i = high - 2; i >= 0; i--) for (int j = 0; j<triangle[i].size(); j++) triangle[i][j] += min(triangle[i + 1][j + 1], triangle[i + 1][j]); return triangle[0][0]; }