摘要: Follow 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 space i... 阅读全文
posted @ 2015-10-20 13:55 茜茜的技术空间 阅读(126) 评论(0) 推荐(0)
摘要: A 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 any point ... 阅读全文
posted @ 2015-10-20 13:01 茜茜的技术空间 阅读(134) 评论(0) 推荐(0)
摘要: Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note:Yo... 阅读全文
posted @ 2015-10-20 12:39 茜茜的技术空间 阅读(145) 评论(0) 推荐(0)
摘要: Note:This is an extension ofHouse Robber.After robbing those houses on that street, the thief has found himself a new place for his thievery so that h... 阅读全文
posted @ 2015-10-20 12:06 茜茜的技术空间 阅读(190) 评论(0) 推荐(0)
摘要: There are a row ofnhouses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certain ... 阅读全文
posted @ 2015-10-20 11:37 茜茜的技术空间 阅读(250) 评论(0) 推荐(0)