Skip to content

Latest commit

 

History

History

challenge-9

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Find square with max sum

Description

Given a table of n lines and m columns, find the square (2x2) with the max sum.

Examples

Input:
  1 1 1 1
  1 2 2 1
  1 2 2 1
  1 1 1 1

Output: 8 (= 2 + 2 + 2 + 2)