[Programmers] 문자열 내 마음대로 정렬하기
Python def solution(strings, n): return sorted(strings, key = lambda x : (x[n], x))
Python def solution(strings, n): return sorted(strings, key = lambda x : (x[n], x))
Python def solution(s): if s.lower().count('p') == 0 and s.lower().count('y') == 0: return True if s.lower().count('p') == s.lower().cou...
Python def solution(a, b): if a < b : return sum(list(range(a, b + 1))) else: return sum(list(range(b, a + 1)))
Python def solution(n): for i in range(1, n): if n % i == 1: return i
Python def solution(arr, divisor): answer = [] for i in arr: if i % divisor == 0: answer.append(i) if answer: return ...