LinkedHashMap 으로 cache 구현하기
https://school.programmers.co.kr/learn/courses/30/lessons/17680ArrayList 를 사용했을때class Solution { private static List cache = new ArrayList(); public static int solution(int cacheSize, String[] cities) { int answer = 0; if (cacheSize == 0){ return cities.length * 5; } for (String city : cities){ String elem = city.toLowerCase(); ..