일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- DP
- 파이썬
- Lv. 1
- 소프티어
- programmers
- Python
- Lv. 2
- 자바스크립트
- Lv. 3
- C언어
- Lv. 0
- level3
- 문자열
- javascript
- Typescript
- Stack
- softeer
- 다이나믹프로그래밍
- 너비 우선 탐색
- dfs
- SQL 고득점 KIT
- level 3
- 타입스크립트
- 브루트포스
- group by
- 스택
- Java
- 프로그래머스
- Dynamic Programming
- bfs
- Today
- Total
목록개발 언어 입문/자바스크립트 (32)
몸과 마음이 건전한 SW 개발자
문제 링크 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 ..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181916 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(a, b, c, d) { const answer = a == b && b == c && c == d ? 1111 * a : a == b && b == c ? (10 * a + d) ** 2 : a == b && b == d ? (10 * a + c) ** 2 : a == c && c == d ? (10 * a + b) ** 2 : b == c..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181919 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(n) { const answer = []; const recursion = (v) => { answer.push(v) if (v == 1) { return } if (v % 2) { recursion(3 * v + 1) } else { recursion(v / 2) } } recursion(n); return answer; } 풀이 방법 재귀..
문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/181921 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 정답 코드 function solution(l, r) { const fiveZero = []; const dfs = (value, stringList) => { if (stringList.length > 6) { return } fiveZero.push(value); for (let fz of ["5", "0"]) { stringList.push(fz); dfs(Number(strin..