Cody

Problem 1019. Vector LCM

  • Find Least Common Multiple of a given vector.
  • Need general solution as the test suite will be expanded.
  • Function Template:
function ans = vectorLCM(v)
   % v=[45 15 200 300];
   1800;
end

Solution Stats

74.03% Correct | 25.97% Incorrect
Last solution submitted on Aug 03, 2019