프로그래머스 - (2018 KAKAO BLIND RECRUITMENT) [1차] 캐시 (Python3)
https://programmers.co.kr/learn/courses/30/lessons/17680 코딩테스트 연습 - [1차] 캐시 3 [Jeju, Pangyo, Seoul, NewYork, LA, Jeju, Pangyo, Seoul, NewYork, LA] 50 3 [Jeju, Pangyo, Seoul, Jeju, Pangyo, Seoul, Jeju, Pangyo, Seoul] 21 2 [Jeju, Pangyo, Seoul, NewYork, LA, SanFrancisco, Seoul, Rome, Paris, Jeju, NewYork, Rome] 60 5 [Jeju, Pangyo, S programmers.co.kr """ [1차] 캐시 """ def solution(cacheSize, cities)..
2020. 8. 1.
프로그래머스 - (2020 카카오 인턴십) 키패드 누르기 (Python3)
https://programmers.co.kr/learn/courses/30/lessons/67256 코딩테스트 연습 - 키패드 누르기 [1, 3, 4, 5, 8, 2, 1, 4, 5, 9, 5] "right" "LRLLLRLLRRL" [7, 0, 8, 2, 8, 3, 1, 5, 7, 6, 2] "left" "LRLLRRLLLRR" [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] "right" "LLRLLRLLRL" programmers.co.kr """ 2020 카카오 인턴십 키패드 누르기 """ def solution(numbers, hand): answer = '' current_left_hand_number = '*' current_right_hand_number = '#' number_m..
2020. 8. 1.
프로그래머스 - (2019 카카오 개발자 겨울 인턴십) 크레인 인형뽑기 게임(Python3)
https://programmers.co.kr/learn/courses/30/lessons/64061 코딩테스트 연습 - 크레인 인형뽑기 게임 [[0,0,0,0,0],[0,0,1,0,3],[0,2,5,0,1],[4,2,4,4,2],[3,5,1,3,1]] [1,5,3,5,1,2,1,4] 4 programmers.co.kr """ 2019 카카오 개발자 겨울 인턴십 크레인 인형뽑기 게임 """ def solution(board, moves): answer = 0 basket = [] total_floor = len(board) for x_position in moves: x_position_index = x_position - 1 for y_position_index in range(total_floor):..
2020. 8. 1.