728x90 반응형 SMALL programming158 프로그래머스) 문자열 겹쳐쓰 def solution(my_string, overwrite_string, s): my_string = list(my_string) for i in range(len(overwrite_string)): my_string[s] = overwrite_string[i] s += 1 answer = ''.join(my_string) return answer 2024. 5. 19. 프로그래머스) 나누어 떨어지는 숫자 배열 def solution(arr, divisor): answer = [] arr.sort() [answer.append(arr[i]) for i in range(len(arr)) if arr[i] % divisor == 0] return answer if answer else [-1] 2024. 5. 18. 프로그래머스) qr code def solution(q, r, code): answer = '' answer += code[r:len(code):q] return answer 2024. 5. 17. 프로그래머스) A로 B만들기 def solution(before, after): answer = 0 before_reverse = before[::-1] print(before_reverse) return answer 2024. 5. 16. 이전 1 ··· 10 11 12 13 14 15 16 ··· 40 다음 728x90 반응형 LIST