일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- DP
- 너비 우선 탐색
- Java
- 자바스크립트
- Lv. 3
- 프로그래머스
- join
- Lv. 2
- 깊이 우선 탐색
- 백준
- dfs
- LEVEL 2
- Baekjoon
- Lv. 0
- 오블완
- 소프티어
- SQL
- level 3
- Lv. 1
- 파이썬
- javascript
- SQL 고득점 KIT
- Python
- select
- programmers
- bfs
- Dynamic Programming
- softeer
- 티스토리챌린지
- group by
- Today
- Total
목록자바스크립트 (153)
몸과 마음이 건전한 SW 개발자

문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/60060 코딩테스트 연습 - 가사 검색[본 문제는 정확성과 효율성 테스트 각각 점수가 있는 문제입니다.] 친구들로부터 천재 프로그래머로 불리는 "프로도"는 음악을 하는 친구로부터 자신이 좋아하는 노래 가사에 사용된 단어들 중school.programmers.co.kr정답 코드function solution(words, queries) { const answer = []; class Node { constructor(name, count, len) { this.name = name; this.count = count; ..

문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/17685 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답 코드function solution(words) { let answer = 0; class Node { constructor(alpha) { this.alpha = alpha; this.count = 1; this.next = []; } } const map = new Map(); for (const word of ..

문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/49995 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답 코드function solution(cookie) { let answer = 0; const n = cookie.length; const dp = Array(n).fill(0); dp[0] = cookie[0]; for (let i = 1; i rv) { left += 1; } else if (lv 풀이 방법누적 배열을 만든다.배열을 만드는 이유[1, 2, ..

문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/42891 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답 코드function solution(food_times, k) { const n = food_times.length; const sortArr = food_times.map((e, idx) => [e, idx+1]); sortArr.sort(([a, b], [c, d]) => a - c); let answer = -1; let prev = 0; for (let i = 0; i = time) { ..

문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/12923 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답 코드function solution(begin, end) { const n = end - begin + 1; const answer = Array(n).fill(1); for (let i = 0; i 풀이 방법begin 부터 end까지 각각의 수의 최대 약수를 찾는다.여기서 최대 약수는 1보다 크고 10_000_000보다 작은 수이다.찾은 최대 약수를 저장하면 끝!느낀점전에는 어떻게 풀지 바로 안떠올랐는데 이번에는 ..

문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/42860 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답 코드function solution(name) { const aCode = "A".charCodeAt(); const zCode = "Z".charCodeAt() + 1; const lenN = name.length; let answer = 0 const moveCost = (char) => { const charCode = char.charCodeAt(); return M..