programmers 131701 java

    [프로그래머스, 131701] 연속 부분 수열 합의 개수 (java)

    https://school.programmers.co.kr/learn/courses/30/lessons/131701 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 135 MB, 시간: 1471.99 ms사용 알고리즘: 구현import java.util.*;class Solution { public int solution(int[] elements) { // 중복 제거를 위한 맵 Set set = new HashSet(); int sum, idx; for(int i = 1; i