일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- javascript
- 문자열
- Lv. 3
- group by
- level 3
- 자바스크립트
- Dynamic Programming
- Stack
- C언어
- 너비 우선 탐색
- SQL 고득점 KIT
- 프로그래머스
- 메모이제이션
- Lv. 1
- Lv. 0
- 파이썬
- 소프티어
- Java
- 스택
- Python
- softeer
- 브루트포스
- programmers
- bfs
- 다이나믹프로그래밍
- level3
- 깊이 우선 탐색
- dfs
- Lv. 2
- DP
- Today
- Total
목록자바스크립트 (106)
몸과 마음이 건전한 SW 개발자
문제 링크 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..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181908 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 1 function solution(my_string, is_suffix) { const lenMyString = my_string.length; const lenIsSuffix = is_suffix.length; if (lenIsSuffix > lenMyString) { return 0 } const diff = lenMyString - lenIsSuffix for (le..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181913 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(my_string, queries) { const answer = queries.reduce((result, [l, r]) => { result.splice(l, r-l+1, ...(result.slice(l, r+1).reverse())) return result }, Array.from(my_string)).join(""); return ..