Given an integer array nums and an integer m, return the maximum product of the first and last elements of a subsequence of nums that has a length of at least m.
Note: A subsequence is a sequence obtained by deleting zero or more elements from the array without changing the relative order of the remaining elements.
Constraints:
nums.length
nums[i]
m nums.length
Given an integer array nums and an integer m, return the maximum product of the first and last elements of a subsequence of nums that has a length of at least m.
Note: A subsequence is a sequence obtained by deleting zero or more elements from the array without changing the relative order of the remaining elements.
Constraints:
nums.length
nums[i]
m nums.length