2013年6月2日
摘要: 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(int x) : val(x), left(NULL), right(NULL) {} 8 * }; 9 */10 11 12 void dep(TreeNode *root,int *d,int t)13 {14 if(root==NULL)15 {16 if(... 阅读全文
posted @ 2013-06-02 22:44 宇睿 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution { 2 public: 3 int minimumTotal(vector<vector<int> > &triangle) { 4 // Start typing your C/C++ solution below 5 // DO NOT write int main() function 6 int i; 7 int j; 8 int t1; 9 int t2;10 for(i=triangle.size()-2;i>=0;i--)11... 阅读全文
posted @ 2013-06-02 21:28 宇睿 阅读(144) 评论(0) 推荐(0) 编辑