摘要: 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-03-07 15:06 穆穆兔兔 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 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-03-07 13:45 穆穆兔兔 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Unique PathsTotal Accepted:36748Total Submissions:112531My SubmissionsQuestionSolutionA robot is located at the top-left corner of amxngrid (marked 'S... 阅读全文
posted @ 2015-03-07 13:12 穆穆兔兔 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.Hide ... 阅读全文
posted @ 2015-03-07 12:50 穆穆兔兔 阅读(135) 评论(0) 推荐(0) 编辑