Discover MakerZone

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

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!

Problem 2158. Largest territory

Created by CHEONNO LEE

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

Tags

Problem Group

Solution Statistics

21 correct solutions 6 incorrect solutions
Last solution submitted on Mar 21, 2016