자료구조 & 알고리즘/프로그래머스(programmers)
[programmers] 보석 쇼핑 (2020 카카오 인턴십)
https://programmers.co.kr/learn/courses/30/lessons/67258# 코딩테스트 연습 - 보석 쇼핑 ["DIA", "RUBY", "RUBY", "DIA", "DIA", "EMERALD", "SAPPHIRE", "DIA"] [3, 7] programmers.co.kr def solution(gems): length = len(set(gems)) gem_length = len(gems) start = 0 end = 0 temp = [0, gem_length] dic = {gems[0] : 1} while start < gem_length and end < gem_length: print(dic) if len(dic) == length: if end-start < temp[1..