leetcode oj题目:Minimum Depth of Binary Tree; Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.
leetcode oj题目:Unique Paths; A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).How many possible unique paths are there?
leetcode oj题目:Unique Paths II; Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?
leetcode oj题目:Valid Parentheses; Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
leetcode oj题目:Add Two Numbers; Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.