Minimum Deletions to Make Array Divisible
You're provided with two positive integer arrays, nums and numsDivide. Your goal is to delete a minimum number of elements from nums such that the smallest element in nums divides all the elements of numsDivide. If it's not possible to achieve this, print -1.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)