Programming Language/코딩테스트
[코딩테스트][파이썬] 연속된 부분 수열의 합
https://school.programmers.co.kr/learn/courses/30/lessons/178870def solution(sequence, k): n = len(sequence) max_sum = 0 end = 0 interval = n for start in range(n): while max_sum def solution(sequence, k): answer = [] start, end = 0, 0 temp = sequence[0] min_len = 1000001 while start k: temp -= sequence[start] start += 1 return answer