일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- list.pop(0)
- Boto3
- Python 나머지
- 피보나치 수
- List to String
- 알고리즘 풀이
- RecursionError
- List 초기화
- 알고리즘
- COUNT
- Python 몫
- sort()
- python3
- set to list
- List
- Split
- zip()
- Python
- homebrew-core is a shallow clone.
- cask
- 프로그래머스
- Algorithm
- list.sorted()
- permutations
- sting position
- Modified Date
- index
- Unknown command: cask
- string
- list to set
- Today
- Total
목록List (4)
데이터와 코드로 세상을 바라봅니다.
import itertools def Isprime(number) : answer = True if number > 1 : for i in range(2,number) : if (number % i ) == 0 : answer = False else : answer = False return answer def solution(numbers): answer = 0 splited_numbers = [] combinated_numbers = [] for i in range(0,len(numbers)) : splited_numbers.append(str(numbers[i])) for j in range(1,len(numbers)+1) : nPr = set(map(''.join, itertools.permuta..
def solution(nums): answer = 0 pick = int(len(nums)/2) set_nums = set(nums) category = len(set_nums) if category >= pick : answer = pick else : answer = category return answer 1. Pick 숫자 구하기 N/2의 몫. 2. 몬스터 종류 구하기. ** List > Set으로 변환 & len 으로 갯수 구하기 3. 최대 경우 계산하기. ** pick이 넘치거나 최대 종류로 담거나. [폰켓몬] 문제 설명 당신은 폰켓몬을 잡기 위한 오랜 여행 끝에, 홍 박사님의 연구실에 도착했습니다. 홍 박사님은 당신에게 자신의 연구실에 있는 총 N 마리의 폰켓몬 중에서 N/2마리를 가져가도..

def solution(board, moves): answer = 0 stack = [] #board 갯수 구하기 array_len = len(board[0]) #크레인 함수 for i in range(0,len(moves)) : # y 값의 모든 x 내역을 list에 넣기 loc_y = moves[i] - 1 loc_x = 0 stack_x = [] for k in range(0,array_len) : if board[k][loc_y] != 0: loc_x=k break # 하나도 값이 없을 때 모두 다 '0' if board[loc_x][loc_y] == 0 : break # 초기에 데이터 적재 if len(stack) == 0: stack.append(board[loc_x][loc_y]) board..
[풀이 코드] def solution(participant, completion): answer = '' participant=sorted(participant) completion=sorted(completion) answer = participant[len(completion)] for i in range(0,len(completion)): if participant[i]!=completion[i]: answer=participant[i] break return answer def solution(participant, completion): answer = '' for i in range(0, len(completion)) : index_pos = participant.index(completion..