摘要: 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... 阅读全文
posted @ 2015-08-23 21:28 gqtc 阅读(146) 评论(0) 推荐(0)
摘要: The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, We get the fo... 阅读全文
posted @ 2015-08-23 13:16 gqtc 阅读(136) 评论(0) 推荐(0)
摘要: Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the interval... 阅读全文
posted @ 2015-08-23 10:51 gqtc 阅读(153) 评论(0) 推荐(0)