You are given two integer arrays nums and target of length n.
In one operation, you can choose an integer x and set nums[i] = target[i] for all indices i where nums[i] == x.
Return the minimum number of operations required to make nums equal to target.
Constraints:
n nums.length target.length
nums[i], target[i]
You are given two integer arrays nums and target of length n.
In one operation, you can choose an integer x and set nums[i] = target[i] for all indices i where nums[i] == x.
Return the minimum number of operations required to make nums equal to target.
Constraints:
n nums.length target.length
nums[i], target[i]