120. Triangle

  • Given a triangle, find the minimum path sum from top to bottom. Each
    step you may move to adjacent numbers on the row below.
    【120. Triangle】For example, given the following triangle
class Solution { public: int minimumTotal(vector>& triangle) { vector minium; vector temp; int min; minium.push_back(triangle[0][0]); for(int i = 1; i

    推荐阅读