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

문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/388353 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답 코드function solution(storage, requests) { let cnt = 0; const n = storage.length; const m = storage.at(0).length; const di = [-1, 1, 0, 0]; const dj = [0, 0, -1, 1]; const isValid = (ni, nj) => { return 0 Array(m+2..

문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/388352 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답 코드function solution(n, q, ans) { const lenQ = q.length; let answer = 0; for (let i = 1; i 풀이 방법dfs로 만들다가 실패해서 5중 for문으로 만들었다.조합을 만들어서 q의 요소들과 비교한다.ans와 같은 값이 나오면 answer++이후 answer를 출력하면 끝!느낀점사실 dfs를 사용해야 더 깔끔한 풀이가 될 수 있지만 결국 가장 직관적이고..

문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/389479?language=javascript 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답 코드function solution(players, m, k) { const lenP = players.length; let answer = 0; const servers = Array.from({length: lenP}, () => 0); players.forEach((e, idx) => { if (e >= m) { const sai = s..

문제 링크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, ..