해커랭크
-
[해커랭크] 2D Array - DS #JAVAAlgorithm Solving/BAEKJOON 2021. 1. 27. 21:55
해커랭크 2D Array - DS 코드 내용(본문2) import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.regex.*; public class Solution { // Complete the hourglassSum function below. static int hourglassSum(int[][] arr) { int[] dx = {-1,0,1,-1,0,1}; int[] dy = {-1,-1,-1,1,1,1}; int max = Integer.MIN_VALUE; for(int i=1 ; i..