python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Is it possible to find a few common multiples of a list of numbers, without them having to be integers?
I don't even know if something like this is possible, but:
Let us say we have three numbers:
A = 6
B = 7.5
C = 24
I would like to find a few evenly spaced common multiples of these numbers between 0 ...
Andrew.M
Votes: 0
Answers: 1
How to maximize the GCD of n positive integers with minimum number of removals from the sequence that represents them?
I'm trying to solve a competitive programming task which I cannot find out effective solution to tackle the last 5 test cases with.
You are given with t (t >= 1 && t <= 5) inquiries each...

user17970898
Votes: 0
Answers: 2
Numpy.gcd using more than 2 arrays
I am wondering if it is possible to compute the greatest common divisor for more than 2 arrays using numpy.gcd().
Using the following arrays for x, y, z:
import numpy as np
x = np.array([[4,6,28],[2,5...
Ruthger Righart
Votes: 0
Answers: 1
find maximum GCD of an array of triplets
you are given an array of triplets of size N, we have to choose one number from each triplet, forming a new array of N size, such that the GCD of the numbers in the new array is maximum.
example:
an a...
ayushi
Votes: 0
Answers: 1