Skip to content · ⁨본문 바로가기⁩

Running sum · ⁨누적 합계⁩

English

Running sum

Return a new array where position i holds the sum of all elements up to and including i: [1, 2, 3, 4] → [1, 3, 6, 10]. Keep a running total and fill a fresh int[] of the same length.

한국어

누적 합계

새로운 배열을 반환하며, 위치 i에는 i까지의 모든 요소의 합이 들어갑니다: [1, 2, 3, 4] → [1, 3, 6, 10]. 누적 합을 유지하며 동일한 길이의 새로운 int[]을 채웁니다.

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP