일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 다이나믹프로그래밍
- 타입스크립트
- softeer
- Lv. 0
- Lv. 1
- DP
- javascript
- level3
- Lv. 3
- 자바스크립트
- Typescript
- 너비 우선 탐색
- programmers
- Java
- Stack
- level 3
- Dynamic Programming
- bfs
- 소프티어
- dfs
- SQL 고득점 KIT
- 브루트포스
- C언어
- Python
- 파이썬
- 프로그래머스
- group by
- 문자열
- 스택
- Lv. 2
- Today
- Total
목록Lv. 1 (22)
몸과 마음이 건전한 SW 개발자
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/12977?language=javascript 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr정답 코드function solution(nums) { const eratosthenes = (num) => { for (let factor = 2; factor 풀이 방법에라스토테네스의 채를 이용해서 소수인 경우 true가 나오는 함수를 만든다.2에서 X의 제곱근까지 1씩 더해가며 X가 나누어 떨어지는지 확인한다.나누어 떨어지면 소수가 아..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/68935 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr정답 코드class Solution { public int solution(int n) { int answer = 0; StringBuilder sb = new StringBuilder(); while (n > 0) { sb.append(n % 3); n = n / 3; } int len..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/155652# 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr정답 코드import java.util.*;class Solution { public String solution(String s, String skip, int index) { String answer = ""; int lenS = s.length(); int lenSkip = skip.length(); Map skip..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/178871 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(players, callings) { let result = [...players]; const ranksP = {}; players.forEach((p, i) => { ranksP[p] = i; }); callings.forEach((p) => { // 현재 플레이어의 순위 const rank = ranksP[p]; const nextR =..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/258712 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(friends, gifts) { const n = friends.length; const dictFriends = {}; // n번째 인덱스가 선물지수 let dp = Array(n).fill().map(() => Array(n+1).fill().map(() => [0, 0])); friends.forEach((f, i) => { dictFr..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/250137 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 def solution(bandage, health, attacks): t, x, y = bandage startHP = health currentTime = 0 isAlived = True # at : attack time || ad : attack damage for at, ad in attacks: # 일단 회복 시키고 때린다. diffTime = at - curren..