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

73.25% Correct | 26.75% Incorrect
Last Solution submitted on Feb 12, 2020