c语言旋转数组
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void reverse(int* nums, int left, int right)
{
while (left < right)
{
int temp = nums[left];
nums[left] = nums[right];
nums[right] = temp;
++left;
--right;
}
}
int main() {
int num
原创
2021-06-16 11:13:46 ·
94 阅读 ·
0 评论