摘要: 问题描述: 计算逆波兰式(后缀表达式)的值 运算符仅包含"+","-","*"和"/",被操作数可能是整数或其他表达式 例如: ["2", "1", "+", "3", "*"] -> ((2 + 1) * 3) -> 9↵ ["4", "13", "5", "/", "+"] -> (4 + (1 阅读全文
posted @ 2019-12-08 20:39 老干妈不太辣 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 求给定二叉树的最小深度。最小深度是指树的根结点到最近叶子结点的最短路径上结点的数量。 Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shorte 阅读全文
posted @ 2019-12-08 20:32 老干妈不太辣 阅读(228) 评论(0) 推荐(0) 编辑