| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- db
- 자바
- 코딩테스트
- 문제풀이
- MySQL
- greedy
- 문제해결
- SQL
- 문자열
- SWEA
- priorityqueue
- 백준
- DP
- BOJ
- BFS
- dfs
- 운동기록
- 프로그래머스
- COS PRO
- 알고리즘
- Java
- 건강
- math
- 투포인터
- 러닝일지
- 시뮬레이션
- 코테
- 이분탐색
- binary search
- oracle
- Today
- Total
목록Algorithms/Programmers (88)
슈콩
[문제]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++; ..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/87946#qna 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]class Solution { int n,answer; boolean[] visit; public int solution(int k, int[][] dungeons) { answer = -1; n = dungeons.length; visit = new boolean[n]; count(0,k,dungeons); return answer; } ..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/42578 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { public int solution(String[][] clothes) { int answer = 1; Map hm = new HashMap(); for(String[] s : clothes){ hm.put(s[1],hm.getOrDefault(s[1],1)+1); } for(int..