MaxCounters
-
MaxCountersStudy/알고리즘 2018. 1. 12. 11:33
첫 난이도 Easy가 아닌 문제 이런문제가 더 재밋다. 뭔가 진짜 푸는듯한 느낌 public static int[] solution(int N, int[] A){ int answer[] = new int[N]; // A Scan for(int i = 0; i = 1 && A[i] max){ max = n; } } //answer 배열을 max값으로 치환한다. for(int j = 0 ; j < answer.length ; j++){ answer[j] = max; } } // for(int n : answer){ // System.out.print(n +" ,"); // } // System.out.println(..