摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文