프로그래머스

    [프로그래머스, 120803] 두 수의 차 구하기 (java)

    https://school.programmers.co.kr/learn/courses/30/lessons/120803 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 83.1 MB, 시간: 0.02 ms사용 알고리즘: 구현class Solution { public int solution(int num1, int num2) { return num1 - num2; }}

    [프로그래머스, 120810] 나머지 구하기 (java)

    https://school.programmers.co.kr/learn/courses/30/lessons/120810 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 85.9 MB, 시간: 0.03 ms사용 알고리즘: 구현class Solution { public int solution(int num1, int num2) { return num1 % num2; }}

    [프로그래머스, 160586] 대충 만든 자판 (java)

    https://school.programmers.co.kr/learn/courses/30/lessons/160586 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 91.5 MB, 시간: 2.39 ms사용 알고리즘: 자료구조, 문자열import java.util.*;class Solution { public int[] solution(String[] keymap, String[] targets) { HashMap km = new HashMap(); // 각 키별로 가장 적게 누를 수 있는 횟수 저장 String key; char k; ..

    [프로그래머스, 155652] 둘만의 암호 (java)

    https://school.programmers.co.kr/learn/courses/30/lessons/155652 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 77.4 MB, 시간: 0.09 ms사용 알고리즘: 문자열class Solution { public String solution(String s, String skip, int index) { // 각 알파벳이 skip에 포함되는지 여부 확인 boolean[] inSkip = new boolean['z' - 'a' + 1]; for(int i = 0; i

    [프로그래머스, 133499] 옹알이 (2) (java)

    https://school.programmers.co.kr/learn/courses/30/lessons/133499 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 84.5 MB, 시간: 0.26 ms사용 알고리즘: 문자열, 구현class Solution { public int solution(String[] babbling) { int answer = 0; int pre; // 1: aya, 2: ye, 3: woo, 4: ma int idx; String s; for(int i = 0; i = 3 ..

    [프로그래머스, 120805] 몫 구하기 (java)

    https://school.programmers.co.kr/learn/courses/30/lessons/120805 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 71.8 MB, 시간: 0.02 ms사용 알고리즘: 구현class Solution { public int solution(int num1, int num2) { return num1 / num2; }}

    [프로그래머스, 12977] 소수 만들기 (java)

    https://school.programmers.co.kr/learn/courses/30/lessons/12977 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 92.2 MB, 시간: 1.48 ms사용 알고리즘: 구현class Solution { public int solution(int[] nums) { // 1 이상 3,000 이하의 수 중, 소수인 것들 구하기 boolean[] isNotPrimeNumber = new boolean[3_001]; isNotPrimeNumber[1] = true; for(int i =..

    [프로그래머스, 17681] [1차] 비밀지도 (java)

    https://school.programmers.co.kr/learn/courses/30/lessons/17681 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 79.8 MB, 시간: 0.11 ms사용 알고리즘: 문자열, 구현class Solution { public String[] solution(int n, int[] arr1, int[] arr2) { String[] answer = new String[n]; StringBuilder sb; for(int i = 0; i

    [프로그래머스, 12918] 문자열 다루기 기본 (java)

    https://school.programmers.co.kr/learn/courses/30/lessons/12918 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 86.2 MB, 시간: 0.04 ms사용 알고리즘: 문자열class Solution { public boolean solution(String s) { // 길이 체크 if(s.length() != 4 && s.length() != 6) return false; // 문자 체크 for(char c : s.toCharArray()) { ..

    [프로그래머스, 70128] 내적 (java)

    https://school.programmers.co.kr/learn/courses/30/lessons/70128 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 75.1 MB, 시간: 0.04 ms사용 알고리즘: 구현class Solution { public int solution(int[] a, int[] b) { int answer = 0; for(int i = 0; i