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 | 31 |
Tags
- 코딩테스트네트워크
- ssd
- 다음큰숫자
- 코딩테스트연습
- 프로그래머스게임맵최단거리
- Pytorch pruning
- 프로그래머스파이썬
- pytorch
- Code Study
- 프로그래머스bfs
- One stage detector
- Faster R-CNN
- ECCV
- SSD 리뷰
- 프로그래머스타겟넘버파이썬
- Object Detection
- 프로그래머스
- 프로그래머스네트워크
- Single Shot MultiBox Detector
- Two stage Detector
- Paper list
- 코딩테스트2단계
- 최솟값 만들기
- deep learning
- Pruning Tutorial
- 커피후기
- 타겟넘버bfs
- 프로그래머스너비우선탐색
- 프로그래머스타겟넘버정답
- 프로그래머스타겟넘버
Archives
- Today
- Total
목록프로그래머스타겟넘버파이썬 (1)
soyeonland

프로그래머스 dfs/bfs 타겟넘버 python (난이도 level2) - 문제 - 문제 해설주어진 numbers로 모든 경우의 수를 따져야 하는 문제이므로 dfs, bfs로 접근 - 실수했던 point더보기q 초깃값에 -numbers[0] 를 추가할 생각을 못했음 (이번에는 테케를 보고 바꿨지만, 예제에 없으면 틀렸을뻔)q.popleft() 대신 q.pop()을 대신 사용함코드를 정리하지 않고 작성하다가, 생각이 막혀서 변수 다시 정의 - solution (bfs 로 접근)from collections import dequecases = [-1, +1]q = deque() def solution(numbers, target): answer = 0 cnt = 0 q.append(..
Study/코딩테스트 연습
2024. 10. 9. 23:36