알고리즘/프로그래머스 (4) 썸네일형 리스트형 프로그래머스 - H-Index 문제https://school.programmers.co.kr/learn/courses/30/lessons/42747# 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 풀이def solution(citations): citations.sort() answer = 0 for i in range(citations[-1]): cnt = 0 for j in range(len(citations)): if citations[j] >= i: cnt = j .. 프로그래머스 - 가장 큰 수 문제https://school.programmers.co.kr/learn/courses/30/lessons/42746 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 풀이def solution(numbers): numbers = list(map(str,numbers)) numbers.sort(key=lambda x:x*3, reverse = True) return str(int(''.join(numbers))) 일반적인 방법으로는 풀기가 힘들다.. 내림차순의 방법으로 푼다고 생각하면 [3,30,34]가 있을 때, [34,30,3.. 프로그래머스 - K번째 수 문제https://school.programmers.co.kr/learn/courses/30/lessons/42748 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 풀이def solution(array, commands): answer = [] for i in commands: temp = array[i[0]-1:i[1]] temp.sort() answer.append(temp[i[2]-1]) return answer 프로그래머스 - 크레인 인형뽑기 게임 문제2019 카카오 개발자 겨울 인텁십 Lv1 - 크레인 인형뽑기 게임https://school.programmers.co.kr/learn/courses/30/lessons/64061 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 풀이def solution(board, moves): list = [] answer = 0 for i in moves: for j in range(len(board)): if board[j][i-1] != 0: if len(list) > 0 and .. 이전 1 다음