leetcode 120 Triangle

C++:

class Solution {
public:
    int minimumTotal(vector>& triangle) {
        for(int i=triangle.size()-2;i>=0;i--){
            for(int j=0;j

你可能感兴趣的:(leetcode 120 Triangle)