摘要: 环状替换法详解 给定一个整数数组 nums,将数组中的元素向右轮转 k 个位置,其中 k 是非负数。 链接:https://leetcode.cn/problems/rotate-array 示例: 输入: nums = [1,2,3,4,5,6,7], k = 3 输出: [5,6,7,1,2,3 阅读全文
posted @ 2023-05-16 12:24 Kellen_Gram 阅读(287) 评论(1) 推荐(0)