일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 소켓
- dp
- 레벨 1
- 쉬운 문제
- 크롤링
- 알고리즘
- 그래프
- Crawling
- ip
- javascript
- 프로그래머스 레벨 2
- 가천대
- 프로그래머스
- 백준
- BFS
- Nestjs
- dfs
- 문자열
- Algorithm
- 수학
- socket
- typescript
- 타입 챌린지
- HTTP 완벽 가이드
- TCP
- type challenge
- 타입스크립트
- Node.js
- 자바스크립트
- HTTP
- 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)); ..