Algorithm (PS)63 [프로그래머스 Level 1] 없는 숫자 더하기 [Java] 문제 https://school.programmers.co.kr/learn/courses/30/lessons/86051 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 코드 import java.util.*; class Solution { public int solution(int[] numbers) { int answer = 0; //해쉬를 통해서 현재 있는 원소 숫자를 삽입 HashMap map = new HashMap(); for(int i=0; i 2023. 8. 17. [프로그래머스 Level 1] 핸드폰 번호 가리기 [Java] 문제 https://school.programmers.co.kr/learn/courses/30/lessons/12948 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 코드 class Solution { public String solution(String phone_number) { String answer = ""; StringBuilder sb =new StringBuilder(); sb.append(phone_number); int size=phone_number.length()-4; for(int i=0; i 2023. 8. 17. [프로그래머스 Level 1] 음양 더하기 [Java] 문제 https://school.programmers.co.kr/learn/courses/30/lessons/76501 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 코드 class Solution { public int solution(int[] absolutes, boolean[] signs) { int answer = 0; for(int i=0; i 2023. 8. 17. [프로그래머스 Level 1] 나누어 떨어지는 숫자 배열 [Java] 문제 https://school.programmers.co.kr/learn/courses/30/lessons/12910 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 코드 import java.util.*; class Solution { public Integer[] solution(int[] arr, int divisor) { List list = new ArrayList(); int idx=0; for(int i=0; i 2023. 8. 17. [프로그래머스 Level 1] 서울에서 김서방 찾기 [Java] 문제 https://school.programmers.co.kr/learn/courses/30/lessons/12919 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 코드 class Solution { public String solution(String[] seoul) { String answer = ""; int idx=0; for(int i=0; i 2023. 8. 17. [프로그래머스 Level 1] 콜라츠 추측 [Java] 문제 https://school.programmers.co.kr/learn/courses/30/lessons/12943 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 코드 class Solution { public int solution(long num) { if(num==1) return 0; int cnt=0; while(cnt 2023. 8. 15. 이전 1 2 3 4 5 6 7 8 ··· 11 다음