[Python : 프로그래머스] 같은 숫자는 싫어
문제 https://programmers.co.kr/learn/courses/30/lessons/12906 풀이 def solution(arr): a = [] for i in arr : if len(a) < 1 or a[-1] != i : ...
문제 https://programmers.co.kr/learn/courses/30/lessons/12906 풀이 def solution(arr): a = [] for i in arr : if len(a) < 1 or a[-1] != i : ...
문제 https://programmers.co.kr/learn/courses/30/lessons/12903 풀이 def solution(s): if len(s) % 2 : return s[len(s)//2] else : return s...
문제 https://programmers.co.kr/learn/courses/30/lessons/12901 풀이 def solution(a, b): week = ["THU", "FRI", "SAT", "SUN", "MON", "TUE", "WED"] month = [...
문제 https://programmers.co.kr/learn/courses/30/lessons/43165 풀이 def solution(numbers, target): from itertools import product pm = [(num, -num) for num...
문제 https://programmers.co.kr/learn/courses/30/lessons/42842?language=python3 풀이 def solution(brown, yellow): total = brown + yellow cd = [i for i in ...