전체 글
[프로그래머스, 181842] 부분 문자열 (java)
https://school.programmers.co.kr/learn/courses/30/lessons/181842 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 80.5 MB, 시간: 0.03 ms사용 알고리즘: 문자열class Solution { public int solution(String str1, String str2) { for(int i = 0; i
[프로그래머스, 181898] 가까운 1 찾기 (java)
https://school.programmers.co.kr/learn/courses/30/lessons/181898 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 78.7 MB, 시간: 0.02 ms사용 알고리즘: 구현class Solution { public int solution(int[] arr, int idx) { for(int i = idx; i
[프로그래머스, 181899] 카운트 다운 (java)
https://school.programmers.co.kr/learn/courses/30/lessons/181899 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 83.4 MB, 시간: 0.02 ms사용 알고리즘: 구현class Solution { public int[] solution(int start_num, int end_num) { int[] answer = new int[start_num - end_num + 1]; for(int i = 0; i
[프로그래머스, 181900] 글자 지우기 (java)
https://school.programmers.co.kr/learn/courses/30/lessons/181900 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 91.4 MB, 시간: 0.06 ms사용 알고리즘: 구현class Solution { public String solution(String my_string, int[] indices) { // 지울 인덱스 boolean[] delete = new boolean[my_string.length()]; for(int i : indices) delete[i] = true; ..
[프로그래머스, 120842] 2차원으로 만들기 (java)
https://school.programmers.co.kr/learn/courses/30/lessons/120842 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 76.3 MB, 시간: 0.02 ms사용 알고리즘: 구현class Solution { public int[][] solution(int[] num_list, int n) { int[][] answer = new int[num_list.length / n][n]; for(int i = 0; i
[프로그래머스, 120888] 중복된 문자 제거 (java)
https://school.programmers.co.kr/learn/courses/30/lessons/120888 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 81.2 MB, 시간: 0.58 ms사용 알고리즘: 자료구조import java.util.*;class Solution { public String solution(String my_string) { StringBuilder answer = new StringBuilder(); // 중복 제거를 위한 set Set set = new HashSet(); ..
[프로그래머스, 181903] qr code (java)
https://school.programmers.co.kr/learn/courses/30/lessons/181903 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 89.7 MB, 시간: 0.14 ms사용 알고리즘: 구현class Solution { public String solution(int q, int r, String code) { StringBuilder answer = new StringBuilder(); int idx = r; while(idx
[프로그래머스, 181904] 세로 읽기 (java)
https://school.programmers.co.kr/learn/courses/30/lessons/181904 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 74.6 MB, 시간: 0.15 ms사용 알고리즘: 구현class Solution { public String solution(String my_string, int m, int c) { StringBuilder answer = new StringBuilder(); int idx = c - 1; while(idx
[프로그래머스, 181905] 문자열 뒤집기 (java)
https://school.programmers.co.kr/learn/courses/30/lessons/181905 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 86.7 MB, 시간: 0.10 ms사용 알고리즘: 문자열class Solution { public String solution(String my_string, int s, int e) { StringBuilder answer = new StringBuilder(); answer.append(my_string.substring(0, s)); answer.append..
[프로그래머스, 181906] 접두사인지 확인하기 (java)
https://school.programmers.co.kr/learn/courses/30/lessons/181906 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 103 MB, 시간: 0.05 ms사용 알고리즘: 문자열class Solution { public int solution(String my_string, String is_prefix) { for(int i = 1; i