Given an integer array nums of even length n.
A cyclic rotation of nums is defined as shifting all elements to the left or right cyclically. A cyclic rotation is considered good if the sum of its first n / n /
Return the total number of good cyclic rotations of nums.
Constraints:
nums.length
nums[i]
n is even.
Given an integer array nums of even length n.
A cyclic rotation of nums is defined as shifting all elements to the left or right cyclically. A cyclic rotation is considered good if the sum of its first n / n /
Return the total number of good cyclic rotations of nums.
Constraints:
nums.length
nums[i]
n is even.