
https://school.programmers.co.kr/learn/courses/30/lessons/120896 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public String solution(String s) { StringBuilder sb = new StringBuilder(); HashMap charCount = new HashMap(); char[] chars = s.toCharArray(); for (char c : chars) { charCount.put(c, charCount.getOrDefault(c, 0) + 1); } for..

https://school.programmers.co.kr/learn/courses/30/lessons/120897 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 내 풀이 public static ArrayList solution(int n) { ArrayList answers = new ArrayList(); for (int i = 1; i n % i == 0).toArray(); }

https://school.programmers.co.kr/learn/courses/30/lessons/120898 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public int solution(String message) { return message.trim().length() * 2; }

https://school.programmers.co.kr/learn/courses/30/lessons/120899 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public int[] solution(int[] array){ int max = 0; int index = 0; for(int i=0;i max){ max = array[i]; index = i; } } return new int[]{max,index}; }

https://school.programmers.co.kr/learn/courses/30/lessons/120902 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public int solution(String my_string) { int answer = 0; String[] arr = my_string.split(" "); answer = Integer.parseInt(arr[0]); for(int i = 1; i < arr.length; i++){ if(i%2!=0){ if(arr[i].equals("+")){ answer += Integer.par..

https://school.programmers.co.kr/learn/courses/30/lessons/120903 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public int solution(String[] s1, String[] s2){ int answer = 0; for(int i=0;i

https://school.programmers.co.kr/learn/courses/30/lessons/120904 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public int solution(int num, int k) { int result = -1; char[] charArr = String.valueOf(num).toCharArray(); for (int i = 0; i < charArr.length; i++) { if (String.valueOf(charArr[i]).equals(String.valueOf(k))) { result = i +..

https://school.programmers.co.kr/learn/courses/30/lessons/120905 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public ArrayList solution(int n, int[] numlist){ ArrayList answer = new ArrayList(); for(int num: numlist){ if(num % n == 0) answer.add(num); } return answer; } 잘 풀었다 생각하는 풀이 public int[] solution(int n, int[] numList) { r..

https://school.programmers.co.kr/learn/courses/30/lessons/120906 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public int solution(int n) { int result = 0; String convertedString = String.valueOf(n); char[] charArr = convertedString.toCharArray(); for(char c: charArr){ result += Integer.parseInt(String.valueOf(c)); } return result;..

https://school.programmers.co.kr/learn/courses/30/lessons/120907 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public String[] solution(String[] quiz) { String[] answer = new String[quiz.length]; for (int i = 0; i < quiz.length; i++) { String[] quizArr = quiz[i].split(" "); int firstNum = Integer.parseInt(quizArr[0]); int secondNum..