[2023] / [Naver Boostcamp AI Tech] Mask Image Classification
·
Competition
https://github.com/KimGeunUk/Mask-Image-Classification GitHub - KimGeunUk/Mask-Image-Classification: level1_imageclassification-cv-16 created by GitHub Classroom level1_imageclassification-cv-16 created by GitHub Classroom - GitHub - KimGeunUk/Mask-Image-Classification: level1_imageclassification-cv-16 created by GitHub Classroom github.com 목표 사람 얼굴 이미지를 입력으로 받아 마스크를 쓰고 있는지, 정확히 쓴 것이 맞는지, 대략적인 나..
[프로그래머스] / [Level 2] / [Python] 광물 캐기
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/172927 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 다음과 같이 DFS로 풀었지만 효율적인 측면에서 많이 좋지 않다는 것을 확인했다. import copy def solution(picks, minerals): answer = [] tired = [[1, 1, 1], [5, 1, 1], [25, 5, 1]] index = {'diamond': 0, 'iron': 1, 'stone': 2} def dfs(picks, minerals, value):..
[프로그래머스] / [Level 2] / [Python] 미로 탈출
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/159993 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr "최소 시간"을 구하기 위해 DFS보다 BFS를 사용하는 것이 적절하다. from collections import deque def solution(maps): def bfs(sx, sy, tx, ty): visit = [[0 for _ in range(col)] for _ in range(row)] Q = deque([(sx, sy)]) visit[sy][sx] = 1 while Q: x, ..
[Docker] 도커 명령어
·
Develop/Docker
도커 캐시 삭제$ sudo docker system prune -a도커 컨테이너 모두 삭제docker rm -f $(docker ps -aq)도커 이미지 모두 삭제docker rmi $(docker images -q)
[Python] pytube로 Youtube 영상 처리
·
Develop/Python
Pytubehttps://github.com/pytube/pytube GitHub - pytube/pytube: A lightweight, dependency-free Python library (and command-line utility) for downloading YouTube Videos.A lightweight, dependency-free Python library (and command-line utility) for downloading YouTube Videos. - GitHub - pytube/pytube: A lightweight, dependency-free Python library (and command-line ut...github.comHow to use ?from pytu..
[프로그래머스] / [Level 2] / [Python] 테이블 해시 함수
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/147354 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(data, col, row_begin, row_end): answer = 0 data = sorted(data, key=lambda x: (x[col-1], -x[0])) for idx, row in enumerate(data[row_begin-1:row_end]): row_sum = 0 for r in row: row_sum += r % (idx+row_begin) an..
[프로그래머스] / [Level 2] / [Python] 혼자 놀기의 달인
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/131130 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(cards): group = [] visited = [False for _ in range(len(cards)+1)] for num in cards: if not visited[num]: temp = [] while True: if num in temp: break temp.append(num) visited[num] = True num = cards[num-1] grou..
[프로그래머스] / [Level 2] / [Python] 시소 짝꿍
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/152996 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 다음과 같이 조합을 사용하면 시간 초과 에러를 출력한다. 더보기 from itertools import combinations as c def solution(weights): answer = 0 weights = sorted(weights) ratios = [1/1, 1/2, 2/3, 3/4] for w in list(c(weights, 2)): a, b = w if a/b in ratios:..
욱근욱
'분류 전체보기' 카테고리의 글 목록 (24 Page)