[LeetCode] Minimum Deletions to Make Array Divisible

2344. Minimum Deletions to Make Array Divisible

You are given two positive integer arrays nums and numsDivide. You can delete any number of elements from nums.

Return the minimum number of deletions such that the smallest element in nums divides all the elements of numsDivide. If this is not possible, return -1.

Note that an integer x divides y if y % x == 0.

Read more
[AtCoder] F - Range Set QueryRead more
[AtCoder] E - LogsRead more
[AtCoder] D - Alter AltarRead more
[AtCoder] C - RepseptRead more
[AtCoder] C - Walking TakahashiRead more
[Codeforces] Educational Round 12 B. ShoppingRead more
[Codeforces] Round #350 (Div. 2) D1. Magic Powder - 1Read more
[Codeforces] Round #353 (Div. 2) B. Restoring PaintingRead more
[Codeforces] Round #355 (Div. 2) B. Vanya and Food ProcessorRead more