DEV Community

loading...

Discussion on: Daily Challenge #130 - GCD Sum

Collapse
juanrodriguezarc profile image
Juan Rodríguez
const solve = (s,g) => (s%g) ? -1 : [g,(s / g-1)*g]