摘要: QuestionGivenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BS... 阅读全文
posted @ 2015-09-20 07:46 树獭君 阅读(127) 评论(0) 推荐(0)
摘要: QuestionFollow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty... 阅读全文
posted @ 2015-09-20 03:04 树獭君 阅读(132) 评论(0) 推荐(0)
摘要: QuestionA robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right at an... 阅读全文
posted @ 2015-09-20 02:41 树獭君 阅读(141) 评论(0) 推荐(0)
摘要: QuestionFind the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[−2,1,−3,4... 阅读全文
posted @ 2015-09-20 02:26 树獭君 阅读(177) 评论(0) 推荐(0)