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

// 프로그래머스 레벨2 프린터를 풀었습니다. const 더큰게있니 = (얘, 다른애들) => { for (let i = 0; i 얘.prio) return true; } return false; }; function solution(priorities, location) { let index = []; priorities.map((el, i) => { index.push({ idx: i, prio: el }); }); console.log(index); let count = 0; while (index.length !== 0) { let temp = index.shift(); if (더큰게있니(temp, index)) { inde..
프로그래밍/알고리즘 풀이
2021. 6. 28. 15:48