977.有序数组的平方
题目链接https://leetcode.cn/problems/squares-of-a-sorted-array/description/ 题解:
/*** Note: The returned array must be malloced, assume caller calls free().*/
int* sortedSquares(int* nums, int numsSize, int* returnSize) {/…
题目链接:https://www.starrycoding.com/problem/7
题目描述
给定义一个数组 a a a,有 q 1 q1 q1次询问,对于每次询问:
给定两个整数 l , r l, r l,r,求出 a l a l 1 . . . a r a_l a_{l 1} ... a_{r} al…