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