| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- COS PRO
- 러닝일지
- 투포인터
- 자바
- 건강
- math
- DP
- binary search
- 문제풀이
- Java
- 이분탐색
- SQL
- 문자열
- priorityqueue
- MySQL
- 시뮬레이션
- 코테
- 프로그래머스
- 백준
- 알고리즘
- BOJ
- db
- oracle
- 운동기록
- 문제해결
- BFS
- SWEA
- dfs
- Today
- Total
목록Java (469)
슈콩
[문제]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..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/76502# 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { public int solution(String s) { int answer = 0; int n = s.length(); Stack stack; for(int i=0;i(); boolean check = true; for(char c : result.toCharArray()..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/131127 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { public int solution(String[] want, int[] number, String[] discount) { int answer = 0; int n = want.length; Map wantMap = new HashMap(); Map disMap; for(int i=0;i(); ..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/131701 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { public int solution(int[] elements) { int answer = 0; int n = elements.length; Set hs = new HashSet(); for(int i=0;i
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/12985 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]class Solution{ public int solution(int n, int a, int b) { int answer = 0; while(a!=b){ a = (a+1) / 2; b = (b+1) / 2; answer++; } return answer; }}
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/12981 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { public int[] solution(int n, String[] words) { int[] answer = {0,0}; int order = 1; int total = words.length; Set hs = new HashSet(); hs.add(words[0]); for(int i=..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/12914 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]class Solution { public long solution(int n) { if(n
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/12980 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;public class Solution { public int solution(int n) { int ans = 0; while(n>0){ if(n%2==0){ n /= 2; } else{ n--; ans++; ..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/138476 [소스 코드]import java.util.*;class Solution { public int solution(int k, int[] tangerine) { int answer = 0; Map hm = new HashMap(); for(int t : tangerine){ hm.put(t,hm.getOrDefault(t,0)+1); } List list = new ArrayList(hm.values()); Collections.sort(list,(a,b)->b-a); in..