Problem 3334 · Medium

Find the Maximum Factor Score of Array

A factor score is the gcd times the lcm of the values, so try removing each element once and keep the best score.

Open the interactive visualisation