[1차] 캐시
-
[프로그래머스] [1차] 캐시Engineering WIKI/Programmers 2022. 5. 30. 16:45
코딩테스트 연습 - [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", "Roprogrammers.co.kr내 풀이def solution(cacheSize, cities): answer = 0 cache_list = list() for city in cities: ..