일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- C언어
- level 3
- 파이썬
- level3
- 자바스크립트
- Lv. 1
- 프로그래머스
- 다이나믹프로그래밍
- Python
- 소프티어
- bfs
- softeer
- 깊이 우선 탐색
- Dynamic Programming
- 브루트포스
- Java
- 스택
- Stack
- Lv. 0
- SQL 고득점 KIT
- Lv. 2
- DP
- 너비 우선 탐색
- 문자열
- group by
- programmers
- dfs
- Lv. 3
- javascript
- 메모이제이션
- Today
- Total
목록javascript (102)
몸과 마음이 건전한 SW 개발자
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/12938 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(n, s) { let answer = []; if (s / n share); for (let idx = 0; idx < rema..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/12927 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(n, works) { class heapq { constructor() { this.heap = []; }; size() { return this.heap.length; }; swap(left, right) { [this.heap[left], this.heap[right]] = [this.heap[right], this.heap[left]]; ..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/43105 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(triangle) { const height = triangle.length; let dp = Array(height).fill().map((e, i) => Array(i+1).fill().map(() => 0)); dp[0][0] = triangle[0][0]; for (let idx = 1; idx < height; idx++) { cons..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/64063 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(k, room_number) { const answer = []; let visited = new Map(); for (const rn of room_number) { if (!visited.has(rn)) { visited.set(rn, rn + 1); answer.push(rn); continue; }; let tmp = rn; const ..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/42897 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(money) { const lenM = money.length; let dp = Array(2).fill().map(() => Array(lenM).fill(0)); dp[0][0] = money[0]; dp[0][1] = Math.max(money[0], money[1]); dp[1][1] = money[1]; for (let idx = 2;..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/43164 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(tickets) { let answer = []; let isFound = false; const lenTickets = tickets.length; const adjL = {} const visited = {} tickets.forEach(([s, e]) => { if (visited[[s, e]] == undefined) { visited[..