2026/8/30 22:28:43
leetcode 耗时100 1752. Check if Array Is Sorted and Rotated
Problem: 1752. 检查数组是否经排序和轮转得到 耗时100%,
找到n[i] > n[i1]的索引,然后拼后面 拼前面,对原数组排序
看两个数组是否相同
Code
class Solution {
public:bool check(vector<int>& nums) {int n nums.size(…