摘要: 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 right at any p 阅读全文
posted @ 2018-10-20 22:24 Veritas_des_Liberty 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Input: 1->2->3->4->5->NULL, k = 2 Output: 4->5->1-> 阅读全文
posted @ 2018-10-20 21:36 Veritas_des_Liberty 阅读(179) 评论(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 following seque 阅读全文
posted @ 2018-10-20 10:35 Veritas_des_Liberty 阅读(148) 评论(0) 推荐(0) 编辑