일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- BFS
- type challenge
- 프로그래머스
- 수학
- socket
- ip
- HTTP
- 크롤링
- javascript
- Crawling
- Algorithm
- 소켓
- 프로그래머스 레벨 2
- TCP
- 알고리즘
- 타입스크립트
- dp
- 문자열
- HTTP 완벽 가이드
- Nestjs
- 그래프
- 자바스크립트
- typescript
- 가천대
- 백준
- 쉬운 문제
- 타입 챌린지
- dfs
- Node.js
- 레벨 1
- Today
- Total
목록레벨1 (4)
kakasoo
// 프로그래머스 level1 자릿수 더하기를 풀었습니다. function solution(n) { n = n.toString(); var answer = 0; for (let i = 0; i < n.length; i++) { answer += Number(n[i]); } return answer; } 자릿수 더하기 문제이다. 간단하므로 설명 생략.
// 프로그래머스 level1 2016년 문제를 풀었습니다. function getDays(month) { switch (month) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: return 31; case 2: return 29; default: return 30; } } function whatDay(answer) { if (answer === 0) return 'FRI'; if (answer === 1) return 'SAT'; if (answer === 2) return 'SUN'; if (answer === 3) return 'MON'; if (answer === 4) retu..
// 프로그래머스 level1 체육복 function solution(n, lost, reserve) { var answer = 0; let array = new Array(n).fill(1); lost.map((losted, i) => {array[losted - 1]--}); reserve.map((rserv, i) => {array[rserv - 1]+= 1}); let count = 0; for (let i = 0; i 0) { count++; } else if (array[i] === 0 && array[i+1] > 1) { count++; array[i+1]--; } else if (array[i] === 0 && array[..
// 프로그래머스 level1 모의고사 const first = [1,2,3,4,5]; const second = [2,1,2,3,2,4,2,5]; const third = [3,3,1,1,2,2,4,4,5,5]; function checkTest (answers, submits) { let count = 0; for (let i = 0; i < answers.length; i++) { if (answers[i] === submits[i % submits.length]) { count++; } } return count; } function solution(answers) { var answer = []; let point = []; point.push(checkTest(answers, first)); ..