Given an integer array nums of size n, and two integers k and x, calculate the beauty of each subarray of size k.
The beauty of a subarray is defined as the x negative integers, its beauty is
Return an integer array containing the beauty of each subarray of size k, ordered from the first subarray to the last.
Constraints:
n nums.length
n
k n
x k
nums[i]
Given an integer array nums of size n, and two integers k and x, calculate the beauty of each subarray of size k.
The beauty of a subarray is defined as the x negative integers, its beauty is
Return an integer array containing the beauty of each subarray of size k, ordered from the first subarray to the last.
Constraints:
n nums.length
n
k n
x k
nums[i]