Given an integer array nums of unique positive integers, find the largest subset such that every pair of elements (a, b) in this subset satisfies either a % b == 0 or b % a == 0.
If multiple valid subsets have the maximum size, return any one of them.
Note: The elements in the subset may be returned in any order.
Constraints:
nums.length
nums[i]
All integers in nums are unique.
Given an integer array nums of unique positive integers, find the largest subset such that every pair of elements (a, b) in this subset satisfies either a % b == 0 or b % a == 0.
If multiple valid subsets have the maximum size, return any one of them.
Note: The elements in the subset may be returned in any order.
Constraints:
nums.length
nums[i]
All integers in nums are unique.