摘要: class Solution {public: int minDepth(TreeNode *root) { if (root == NULL) return 0; int min_depth = INT_MAX; dfs(root, 0, min_d... 阅读全文
posted @ 2014-03-18 16:15 卖程序的小歪 阅读(174) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: int minDistance(string word1, string word2) { const int cols = word1.length() + 1; const int rows = word2.len... 阅读全文
posted @ 2014-03-18 15:36 卖程序的小歪 阅读(240) 评论(0) 推荐(0) 编辑