| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 |
- priorityqueue
- 운동기록
- oracle
- MySQL
- 이분탐색
- Java
- 자바
- SWEA
- DP
- BFS
- 백준
- greedy
- 투포인터
- math
- 프로그래머스
- 러닝일지
- 문제풀이
- 알고리즘
- 시뮬레이션
- binary search
- db
- 문제해결
- 건강
- dfs
- 코딩테스트
- BOJ
- 문자열
- COS PRO
- 코테
- SQL
- Today
- Total
목록Java (469)
슈콩
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/92335#qna 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { public int solution(int n, int k) { int answer = 0; String nums = Integer.toString(n,k); for(String num : nums.split("0")){ if("".equals(num)) continue; if(p..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/154539 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { public int[] solution(int[] numbers) { Stack stack = new Stack(); int n = numbers.length; int[] answer = new int[n]; for(int i=n-1;i>=0;i--){ int target = numbers[i..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/84512 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { List list; String[] w = {"A","E","I","O","U"}; public int solution(String word) { int answer = 0; list = new ArrayList(); for(int i=1;i
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/49994 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]class Solution { int[] dy = {1,0,-1,0}; int[] dx = {0,1,0,-1}; public int solution(String dirs) { int answer = 0; boolean[][][] visit = new boolean[11][11][4]; int y = 5; int x = 5; int d = 0; for(ch..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/43165 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]class Solution { int n,answer = 0; boolean[] visit; public int solution(int[] numbers, int target) { n = numbers.length; for(int i=1;i
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/132265 [소스 코드]import java.util.*;class Solution { public int solution(int[] topping) { int answer = 0; Set leftHs = new HashSet(); Set rightHs = new HashSet(); int n = topping.length; int[] leftCnt = new int[n]; int[] rightCnt = new int[n]; for(int i=0;i=0;j--){ if(!right..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/42577 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr 정렬 후, 앞에 있는 모든 String과 비교하는 경우, 시간초과 주의 !=> 사전 순으로 정렬 후, 인접 비교(비슷한 문자 비교) [소스 코드]import java.util.*;class Solution { public boolean solution(String[] phone_book) { Arrays.sort(phone_book); for(int i=0;i
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/64065 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { public int[] solution(String s) { List list = new ArrayList(); Set hs = new LinkedHashSet(); s = s.substring(2,s.length()-2); for(String nums : s.split("\\},\\{")){ ..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/17680 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { public int solution(int cacheSize, String[] cities) { int answer = 0; Queue q = new LinkedList(); for(int i=0;i
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/42586 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { public int[] solution(int[] progresses, int[] speeds) { List list = new ArrayList(); int n = progresses.length; int idx = 0; while(idx= 100){ idx++; ..