반응형 기지국 설치1 [Programmers] Lv3: 기지국 설치(12979) 문제- 링크: https://school.programmers.co.kr/learn/courses/30/lessons/12979?language=java 풀이더보기class Solution { public int solution(int n, int[] stations, int w) { int answer = 0; int location = 1; int i = 0; while (location = stations[i] - w) { location = stations[i] + w + 1; i++; } else { location += 2 *.. 2025. 2. 12. 이전 1 다음 반응형