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

처음에는 대괄호, 소괄호를 따로 따로 배열을 만들어서 관리해 주었는데, 예외가 있었다. [(]) 형태로 들어올 때 제대로 동작하지 않았다. 그래서 배열을 하나로 합쳐줬더니 해결되었다. const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.on("line", (line) => { if (line === ".") { rl.close(); } main(line); }).on("close", () => { process.exit(); }); /** * * @param {string} line */ const main = (line) =>..
프로그래밍/알고리즘 풀이
2021. 3. 30. 11:05