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