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

// 프로그래머스 level1 시저 암호를 풀었습니다. function solution(s, n) { var answer = ""; let big = []; let small = []; for (let i = "A".charCodeAt(0); i big.length - 1) nextPos -= big.length; return big[nextPos]; } else if (small.includes(el)) { let nextPos = small.indexOf(el) + n; if (nextPos > small.length - 1) nextPos -= small.length; return small[nextPos]; } else return el; }); return s.join(""); }
프로그래밍/알고리즘 풀이
2021. 6. 26. 12:48