반응형
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
- 백준
- TCP
- 프로그래머스 레벨 2
- 문자열
- ip
- Crawling
- 알고리즘
- 쉬운 문제
- Nestjs
- javascript
- 타입스크립트
- dfs
- BFS
- Node.js
- HTTP
- Algorithm
- HTTP 완벽 가이드
- type challenge
- 프로그래머스
- 가천대
- 수학
- 자바스크립트
- 크롤링
- 타입 챌린지
- 레벨 1
- 소켓
- socket
- dp
- 그래프
- typescript
Archives
- Today
- Total
목록올바른 문자열 괄호 (1)
kakasoo
[node.js] 괄호 회전하기 ( 프로그래머스 레벨2 )
const left = 0; const right = 1; const isRight = (arr) => { const stack = []; for (const item of arr) { stack.push(item); if (stack.length >= 2) { while ((stack[stack.length - 2] === '(' && stack[stack.length - 1] == ')') || (stack[stack.length - 2] === '[' && stack[stack.length - 1] == ']') || (stack[stack.length - 2] === '{' && stack[stack.length - 1] ==..
프로그래밍/알고리즘 풀이
2021. 7. 1. 22:44