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

86.96% Correct | 13.04% Incorrect
Last solution submitted on Dec 05, 2016

Tags

lcm
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more