| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- 프로그래머스
- 이분탐색
- 자바
- dfs
- binary search
- BOJ
- math
- 문자열
- SQL
- 시뮬레이션
- MySQL
- greedy
- BFS
- 알고리즘
- 문제해결
- 운동기록
- SWEA
- db
- 건강
- 투포인터
- DP
- 코테
- 코딩테스트
- Java
- 백준
- COS PRO
- oracle
- 러닝일지
- 문제풀이
- Today
- Total
목록2025/10/13 (8)
슈콩
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/12945 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]class Solution { public int solution(int n) { if(n==0) return 0; if(n==1) return 1; int cnt = 1, a = 0,b = 1; while(cnt
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/12973 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution{ public int solution(String s) { Stack stack = new Stack(); for(Character c : s.toCharArray()){ if(stack.isEmpty()) stack.push(c); else{ if(stack.peek()..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/12911 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]class Solution { public int solution(int n) { int cnt = Integer.bitCount(n); int answer = n; while(true){ answer++; int cmp = Integer.bitCount(answer); if(cnt==cmp) break; } ..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/12924 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]class Solution { public int solution(int n) { int answer = 0; int st = 1,end = 1,sum = 1; while(end=n) sum -= st++; else sum += ++end; } return answer; }}
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/70129 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]class Solution { public int[] solution(String s) { int cnt = 0; int zero = 0; while(!s.equals("1")){ int len1 = s.length(); s = s.replaceAll("0",""); zero += len1 - s.length(); ..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/12951 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]class Solution { public String solution(String s) { String answer = ""; boolean isStart = false; for(char c : s.toCharArray()){ if(c==' '){ answer += " "; isStart = false; ..
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/12941 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution{ public int solution(int []A, int []B) { int answer = 0; int n = A.length; Arrays.sort(A); Arrays.sort(B); for(int i=0;i
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/12909 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { boolean solution(String s) { Stack stack = new Stack(); for(char c : s.toCharArray()){ if(c=='(') stack.push('('); else if(stack.isEmpty()) return false; els..