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

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