| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 운동기록
- 프로그래머스
- greedy
- 건강
- 백준
- SWEA
- SQL
- 시뮬레이션
- 문제풀이
- binary search
- 문자열
- BFS
- db
- priorityqueue
- MySQL
- 투포인터
- dfs
- 러닝일지
- 코딩테스트
- math
- COS PRO
- Java
- 이분탐색
- DP
- oracle
- 알고리즘
- 코테
- BOJ
- 문제해결
- 자바
- Today
- Total
목록Algorithms/Programmers (88)
슈콩
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/92341#qna 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { public int[] solution(int[] fees, String[] records) { Map inTime = new HashMap(); Map outTime = new HashMap(); for(String order : records){ String[] info = order.split(..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/154538 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { public int solution(int x, int y, int n) { int answer = 0; boolean[] visit = new boolean[y+1]; Queue q = new LinkedList(); visit[x] = true; q.offer(new int[]{x,0}); ..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/49993 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]class Solution { public int solution(String skill, String[] skill_trees) { int answer = 0; for(String tree : skill_trees){ String filter = ""; for(char c : tree.toCharArray()){ String s = S..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/131704 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { public int solution(int[] order) { int answer = 0; int n = order.length; int idx = 0; Stack stack = new Stack(); for(int i=1;i
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/12913#qna 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]class Solution { int solution(int[][] land) { int answer = 0; int n = land.length; for(int i=1;i
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/42584 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]class Solution { public int[] solution(int[] prices) { int[] answer = new int[prices.length]; for(int i=0;i
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/42626 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { public int solution(int[] scoville, int K) { int answer = 0; PriorityQueue pq = new PriorityQueue(); for(int s : scoville) pq.offer(s); while(pq.size()>1 && pq.peek()
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/17687#qna 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]class Solution { public String solution(int n, int t, int m, int p) { String answer = ""; int num = 0; int order = 1; int cnt = 0; while(cnt
[문제]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..