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

// 프로그래머스 레벨 2 [카카오 인턴] 수식 최대화 const getPriority = () => { const operator = ["+", "-", "*"]; const priority = []; let visited; let answer; const dfs = (start) => { visited[start] = true; answer.push(operator[start]); if (answer.length === 3) { priority.push([...answer]); } for (let i = 0; i < operator.length; i++) { if (!visited[i]) { visited[i] = true; dfs(i); visited[i] = false; answer.pop(); ..
프로그래밍/알고리즘 풀이
2021. 6. 30. 09:16