2024.06.05 TIL 코트카타 73번(공원 산책)
fun solution(park: Array, routes: Array): IntArray { val directionX = intArrayOf(0,1,0,-1) // N,E,S,W val directionY = intArrayOf(-1,0,1,0) var currentX = -1 var currentY = -1 for(parkI in park.indices) { for(parkJ in park[parkI].indices) { if(park[parkI][parkJ] == 'S') { currentX = parkJ currentY ..