An array A is said to be larger than an array B of the same length if, at the first index i where A[i] \neq B[i], the element A[i] is strictly greater than B[i].
Given an integer array nums composed of unique integers and an integer k, return the largest subarray of nums having a length of k.
Constraints:
nums.length
nums[i]
All integers in nums are unique.
An array A is said to be larger than an array B of the same length if, at the first index i where A[i] \neq B[i], the element A[i] is strictly greater than B[i].
Given an integer array nums composed of unique integers and an integer k, return the largest subarray of nums having a length of k.
Constraints:
nums.length
nums[i]
All integers in nums are unique.