摘要: Given a m x n grid filled with non negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. 阅读全文
posted @ 2018-11-07 13:08 bernieloveslife 阅读(89) 评论(0) 推荐(0)
摘要: A robot is located at the top left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p 阅读全文
posted @ 2018-11-07 13:08 bernieloveslife 阅读(115) 评论(0) 推荐(0)
摘要: A robot is located at the top left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p 阅读全文
posted @ 2018-11-07 13:08 bernieloveslife 阅读(114) 评论(0) 推荐(0)
摘要: Given a string containing just the characters '(' and ')', find the length of the longest valid (well formed) parentheses substring. Example 1: Input: 阅读全文
posted @ 2018-11-07 13:08 bernieloveslife 阅读(219) 评论(0) 推荐(0)
摘要: Given preorder and inorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. For example, 阅读全文
posted @ 2018-11-07 13:08 bernieloveslife 阅读(107) 评论(0) 推荐(0)