You are given an integer array nums and an integer k.
In one operation, you can choose two adjacent elements in nums whose product is less than or equal to k, and replace them with a single element equal to their product.
Return the minimum possible length of nums after performing any number of operations.
Constraints:
nums.length
nums[i]
k
You are given an integer array nums and an integer k.
In one operation, you can choose two adjacent elements in nums whose product is less than or equal to k, and replace them with a single element equal to their product.
Return the minimum possible length of nums after performing any number of operations.
Constraints:
nums.length
nums[i]
k