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

const solution = (dirs) => { const answer = []; let next = { y : 5, x : 5 }; dirs.split('').forEach((dir) => { const cur = next; const funcs = { "U" : function (cur) { return { y : cur.y + 1, x : cur.x }; }, "D" : function (cur) { return { y : cur.y - 1, x : cur.x }; }, "R" : function (cur) { return { y : cur.y, x : cur.x + 1 }; }, "L" : function (cur) { return { y : cur.y, x : cur.x - 1..
프로그래밍/알고리즘 풀이
2021. 7. 2. 14:18