摘要:
[LeetCode] 61. 旋转链表 题目 Given the head of a linked list, rotate the list to the right by k places. Example 1: Input: head = [1,2,3,4,5], k = 2 Output: 阅读全文
摘要:
[LeetCode] 60. 排列序列 题目 The set [1, 2, 3, ..., n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, 阅读全文
摘要:
[LeetCode] 59. 螺旋矩阵 II 题目 Given a positive integer n, generate an n x n matrix filled with elements from 1 to n2 in spiral order. Example 1: Input: n 阅读全文