摘要: 题目 Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: nums = [1,2,3,4,5,6,7], k = 3 Output: [5,6,7,1 阅读全文
posted @ 2022-02-24 23:52 frankming 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order. Example 1 阅读全文
posted @ 2022-02-24 00:21 frankming 阅读(21) 评论(0) 推荐(0) 编辑