You are given an integer array nums consisting of positive integers.
You can perform the following operation any number of times:
Choose two distinct indices i and j such that nums[i] > nums[j] >
Append the value of nums[i] % nums[j] to the end of nums.
Remove the elements at indices i and j from nums.
Return an integer representing the minimum possible length of nums after performing the operation any number of times.
Constraints:
nums.length
nums[i]
You are given an integer array nums consisting of positive integers.
You can perform the following operation any number of times:
Choose two distinct indices i and j such that nums[i] > nums[j] >
Append the value of nums[i] % nums[j] to the end of nums.
Remove the elements at indices i and j from nums.
Return an integer representing the minimum possible length of nums after performing the operation any number of times.
Constraints:
nums.length
nums[i]