일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Lv. 0
- DP
- level 3
- javascript
- Lv. 1
- 소프티어
- Python
- Lv. 3
- dfs
- group by
- programmers
- 스택
- 메모이제이션
- Stack
- 너비 우선 탐색
- 파이썬
- 문자열
- softeer
- 깊이 우선 탐색
- 자바스크립트
- 브루트포스
- C언어
- Java
- Lv. 2
- Dynamic Programming
- bfs
- SQL 고득점 KIT
- 다이나믹프로그래밍
- 프로그래머스
- level3
- Today
- Total
목록javascript (102)
몸과 마음이 건전한 SW 개발자
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/42578 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(clothes) { const clothesDict = {} clothes.forEach(([clothesName, clothesType]) => { if (clothesDict[clothesType] !== undefined) { clothesDict[clothesType].push(clothesName) } else { clothesDict..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181896 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 1 function solution(num_list) { const answer = num_list.indexOf(num_list.find((e) => 0 > e)); return answer; } 정답 코드 2 function solution(num_list) { const answer = num_list.findIndex((e) => 0 > e); return answe..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/42576 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 1 function solution(participant, completion) { let answer = ""; const pDict = {}; for (const p of participant) { const isValid = pDict[p]; if (isValid) { pDict[p] += 1; } else { pDict[p] = 1; }; }; for (const cp..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/42577 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(phone_book) { const pbDict = {}; for (const pn of phone_book) { pbDict[pn] = 1 } let answer = true; for (const pn of phone_book) { let isValid = true; const lenPn = pn.length; const currentList..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181899 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 1 const solution = (start, end) => Array(start-end+1).fill(start).map((v,i)=>v-i); 정답 코드 2 function solution(start, end_num) { const answer = []; for (let s = start; s >= end_num; s--) { answer.push(s); } retur..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181902 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(my_string) { const answer = Array(52).fill(0); // console.log("A".charCodeAt()) // 65 // const p1 = String.fromCharCode(65, 66, 67) // ABC // console.log("A".codePointAt()) // 65 // console.lo..