프로그래머스

Programmers모의고사https://school.programmers.co.kr/learn/courses/30/lessons/42840 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr문제코드각 수포자가 찍는 패턴을 활용한 리스트 생성enumerate를 사용해 동점자, 인덱스 번호 출력하는 answer를 구성def solution(answers): answer = [] a = [1, 2, 3, 4, 5] b = [2, 1, 2, 3, 2, 4, 2, 5] c = [3, 3, 1, 1, 2, 2, 4, 4, 5, 5] score =..
Programmers2016년https://school.programmers.co.kr/learn/courses/30/lessons/12901 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr문제코드각 달(월)의 말일을 리스트로 만들기day 순서는 2016년 1월 1일이 금요일이기 때문에 금요일부터 정렬total: 1월 1일부터 a월 b일 총 일수day는 금요일부터 시작하기 때문에, % 7의 결과가 0이면 금요일, 1이면 토요일 등으로 매핑되어야 함. 하지만 Python에서 배열 인덱스는 0부터 시작하므로, 계산된 나머지에서 1을 빼주어 올바른 인덱스로 조정de..
Programmers폰켓몬https://school.programmers.co.kr/learn/courses/30/lessons/1845 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr문제코드def solution(nums): maximum = len(nums) // 2 new_list = [] for i in nums: if i not in new_list and len(new_list)
Programmers카드 뭉치https://school.programmers.co.kr/learn/courses/30/lessons/159994 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr문제코드def solution(cards1, cards2, goal): for i in goal: if len(cards1) > 0 and i == cards1[0]: cards1.pop(0) elif len(cards2) > 0 and i == cards2[0]: cards2.pop(0) ..
·Algorithm
Programmers추억 점수https://school.programmers.co.kr/learn/courses/30/lessons/176963 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr문제코드def solution(name, yearning, photo): answer = [] for i in photo: score = 0 for j in i: if j in name: score += yearning[name.index(j)] answer.append(scor..
potato_pizza
'프로그래머스' 태그의 글 목록 (12 Page)