일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- join
- Python
- 티스토리챌린지
- 자바스크립트
- softeer
- Java
- Lv. 2
- 오블완
- 소프티어
- 파이썬
- level 3
- Lv. 0
- SQL 고득점 KIT
- group by
- javascript
- Lv. 3
- 깊이 우선 탐색
- LEVEL 2
- dfs
- SQL
- 동적계획법
- 백준
- Dynamic Programming
- 너비 우선 탐색
- 프로그래머스
- bfs
- programmers
- Baekjoon
- Lv. 1
- DP
- Today
- Total
목록javascript (157)
몸과 마음이 건전한 SW 개발자
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/214289 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답 코드function solution(temperature, t1, t2, a, b, onboard) { // 계산을 편리하게 하기 위해서 -10 Array(51).fill(Infinity)); dp[0][t] = 0; const isValid = (i, temp) => !onboard[i] || (t1 t ? ht-1 : ht; if (isValid(i+1, te..
▶▷ 서론◁◀ES2022의 특징을 살펴보려고 하는데 문제는 정규표현식이 있다는 점이다.정규표현식에 대해서 잘 모르기 때문에 나중에 정규표현식만 따로 살펴보면 좋을 것 같다.▶▷ 목차 ◁◀(Array, String) atRegExp /d(Object) hasOwnerror.causeawait importClass filed declarationsPrivate methods and fields▶▷ 1. (Array, String) at ◁◀Array at()String at()1. Array.prototype.at() 메서드at() 메서드는 배열의 인덱스를 기준으로 요소를 반환하는 ES2022에서 도입된 메서드다. [] 표기법과 유사하지만, 음수 인덱스를 사용하여 배열의 끝에서부터 요소에 접근할 수 있는 기..

▶▷ 서론◁◀ES2024부터 역순으로 올라가면서 특징을 살펴보고 정리하는 중이다.▶▷ 목차 ◁◀(Array) findLast, findLastIndex(Array) toReversed, toSorted, toSpliced(Array) with#! (Shebang)▶▷ 1. ( Array) findLast, findLastIndex ◁◀Array findLast()Array findLastIndex()Array.prototype.findLast() 메서드findLast() 메서드는 배열의 끝에서부터 시작하여 조건을 만족하는 첫 번째 요소의 값을 반환한다. 조건을 만족하는 요소가 없으면 undefined를 반환한다. 이 메서드는 ES2023에 추가되었다.예제:const temp = [27, 28, 30, ..
문제 링크https://softeer.ai/practice/9657 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai정답 코드const readline = require('readline');const rl = readline.createInterface({ input: process.stdin, output: process.stdout,});const inputData = [];rl.on('line', (line) => { inputData.push(line.split(" ").map((e) => Number(e)));}).on('close', () => { const [n, m] = inputData[0]; const board = inputData.sl..
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/214288?language=javascript 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답 코드// 멘토 n명, 1~k번 상담 유형, 각 멘토는 k개의 상담 유형 중 하나만 담당function solution(k, n, reqs) { // 단, 각 유형별로 멘토 인원이 적어도 한 명 이상이어야 합니다. let answer = 1000 * 3000; const types = Array.from({length: n+1}, () => []); reqs.forEa..
문제 링크https://softeer.ai/practice/7369 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai정답 코드const readline = require('readline');const rl = readline.createInterface({ input: process.stdin, output: process.stdout,});const inputData = [];rl.on('line', (line) => { inputData.push(line.split(" ").map((e) => Number(e)));}).on('close', () => { const n = inputData[0][0]; const field = inputData.slic..