| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- math
- BFS
- MySQL
- greedy
- 투포인터
- BOJ
- db
- COS PRO
- priorityqueue
- 이분탐색
- 시뮬레이션
- 자바
- SWEA
- dfs
- binary search
- 코딩테스트
- 알고리즘
- 러닝일지
- 운동기록
- SQL
- Java
- 백준
- 문제해결
- 프로그래머스
- 코테
- DP
- 문자열
- 문제풀이
- oracle
- 건강
- Today
- Total
목록2025/10/14 (8)
슈콩
[문제]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..