[프로그래머스] 2016년
내가 푼 답 public String solution(int a, int b) { String[] week = {"FRI", "SAT", "SUN", "MON", "TUE", "WED", "THU"}; int[] month = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int totalDay = b-1; for(int i=0; i
[프로그래머스] 모의고사
내가 푼 코드 public int[] solution(int[] answers) { int[] answer1 = {1, 2, 3, 4, 5}; int[] answer2 = {2, 1, 2, 3, 2, 4, 2, 5}; int[] answer3 = {3, 3, 1, 1, 2, 2, 4, 4, 5, 5}; HashMap count = new HashMap(); for(int i=0; i maxScore != count.get(key)); int[] answer = new int[list.size()]; for(int i=0; i