#3444
Minimum Increments for Target Multiples in an Array
international master · 2050 · lc hard +32 · 27.4% accepted · 87 likes · top 5%
Description
You are given two arrays, nums and target.
In a single operation, you may increment any element of nums by 1.
Return the minimum total number of operations so that every element in target divides at least one element in nums.
Code
1
2
3