목록프로그래머스 (7)
today_is
https://school.programmers.co.kr/learn/courses/30/lessons/12906 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 코드 import java.util.*;public class Solution { public int[] solution(int []arr) { int[] answer = {}; ArrayList list = new ArrayList(); int check = -1; // 배열은 0 ~ 9로 구성되어있기 때문 ..

https://school.programmers.co.kr/learn/courses/30/lessons/42746 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 무슨 기준으로 점수를 많이 주는건지 모르겠다. 코드import java.util.*;class Solution { public String solution(int[] numbers) { String[] newArr = new String[numbers.length]; for(int i=0; i (b + a).compareTo(a + ..

https://school.programmers.co.kr/learn/courses/30/lessons/42748 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 코드import java.util.*;class Solution { public int[] solution(int[] array, int[][] commands) { int[] answer = new int[commands.length]; for(int i=0; i 오류발생 ArrayIndexOutOfBoundsException 예외발생 로직은 이..
https://school.programmers.co.kr/learn/courses/30/lessons/42578 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 코드import java.util.*;class Solution { public int solution(String[][] clothes) { int answer = 1; HashMap map = new HashMap(); for(int i=0; i 한줄씩 해석 answer값을 1로 초기화해둔다 : 경우의 수를 구..

https://school.programmers.co.kr/learn/courses/30/lessons/42576 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 작성한 코드import java.util.*;class Solution { public String solution(String[] participant, String[] completion) { String answer = ""; HashMap map = new HashMap(); for(String p : participa..

작성한 코드 import java.util.*;class Solution { public boolean solution(String[] phone_book) { boolean answer = true; HashMap map = new HashMap(); for(String str : phone_book) { map.put(str, 1); } for(String str : phone_book) { for(int i=1; i 한줄씩 해석해보기 answer는 true로 초기화 HashMap은 key(String) , value(Integer) 형태로 만든다..

https://school.programmers.co.kr/learn/courses/30/lessons/72410<figure id="og_1701761717558" contenteditable="false" data-ke-type="opengraph" data-ke-align="alignCenter" data-og-type="website" data-og-title="프로그래머스" data-og-description="코드 중심의 개발자 ..