프로그래머스 레벨3 - 카카오 2020 외벽점검
문제주소 programmers.co.kr/learn/courses/30/lessons/60062 내 풀이 from collections import deque from itertools import permutations # 항상 index 처리가 어렵다. 맨 앞, 뒤 index는 특별하게 확인해주기 def checkVisited(weak, friends): index = 0 visited = [False for _ in range(len(weak))] for friend in friends: dist = 0 while friend >= dist and index < len(weak)-1: visited[index] = True index += 1 dist += weak[index] - weak[inde..
Algorithm/문제풀이 Python
2021. 1. 20. 21:05
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- java
- 내부코드
- JPA
- JS
- 개발공부일지
- Spring
- Transaction
- 글쓰기미션
- OS
- javascript
- 월간회고
- TIL
- 학습로그
- React
- 우테코수업
- 우아한테크코스
- TCP/IP
- DB
- 객체지향
- 마스터즈코스
- 코드스쿼드
- 인증
- python
- 모의면접준비
- 알고리즘
- 카카오
- 회고
- 네트워크
- CS
- 운영체제
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함