일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- DP
- 브루트포스
- 너비 우선 탐색
- bfs
- 문자열
- level 3
- 타입스크립트
- Lv. 1
- 프로그래머스
- programmers
- level3
- dfs
- Java
- softeer
- C언어
- SQL 고득점 KIT
- Lv. 2
- Lv. 0
- Dynamic Programming
- javascript
- Stack
- 파이썬
- group by
- 자바스크립트
- 다이나믹프로그래밍
- Python
- Typescript
- 소프티어
- Lv. 3
- 스택
- Today
- Total
목록Java (13)
몸과 마음이 건전한 SW 개발자
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/68646?language=java 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr정답 코드class Solution { public int solution(int[] a) { int lenA = a.length; if (lenA -1; j--) { rightMin[j] = Math.min(rightMin[j + 1], a[j]); } int answer = ..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/12930 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr정답 코드class Solution { public String solution(String s) { int lenS = s.length(); StringBuilder sb = new StringBuilder(); boolean isOdd = true; for (int i = 0; i 풀이 방법StringBuilder를 만든다.' ' 빈 ..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/12979 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr정답 코드class Solution { public int solution(int n, int[] stations, int w) { int answer = 0; int range = 2 * w + 1; int currentIdx = 1; for (int s : stations) { // 현재 위치가 기지국의 범위에 있는..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/12940 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr정답 코드class Solution { public int gcd(int n, int m) { // m이 크다고 전제하고 게산 int tmp = m; if (n > m) { m = n; n = tmp; } while (n > 0) { int o = m; ..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/12943 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr정답 코드class Solution { public int solution(int num) { int answer = -1; for (int i = 0; i 풀이 방법반복문을 500까지 할 수 있도록 만든다.num이 1이 되면 answer에 현재 i값을 넣고 강제 종료 시킨다.answer를 반환한다.느낀점쉽지만 확실하게 풀어야 한다.파이썬에서 되는 /= 과 *=이..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/12947 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr정답 코드class Solution { public boolean solution(int x) { boolean answer = true; String strX = String.valueOf(x); int lenX = strX.length(); int divider = 0; for (int i = 0; i 0) { ..