
[프로그래머스 Lv0] 안전지대 | 자바
·
📝 Coding Test/Programmers Lv0
문제안전지대풀이import java.util.*;class Solution { public int solution(int[][] board) { int answer = 0; // 폭탄의 위치 파악 하기 List bomb_location = new ArrayList(); for(int i = 0; i = 0 && ny >= 0 && nx if(nx >= 0 && ny >= 0 && nx ArrayIndexOutOfBoundsException : 정해진 배열의 크기보다 크거나 음수 index에 대한 요청이 있으면 ArrayIndexOutOfBoundsException이 발생합니다.