Cody

Problem 2158. Largest territory

Determine whose territory is largest. If there are two more large territory, determine a smaller number.

For example,

 X = 
 [ 1 1 2 2
   1 1 2 2
   2 2 2 2 ]
 y = 2

Solution Stats

77.78% Correct | 22.22% Incorrect
Last solution submitted on Mar 21, 2016
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