코딩 공부

코딩 인터뷰 퀘스천 완전 분석 - Running Sum of 1d Array 본문

Coding

코딩 인터뷰 퀘스천 완전 분석 - Running Sum of 1d Array

Daily Coding 2020. 10. 15. 10:03

[LeetCode] [Easy] 1480. Running Sum of 1d Array

 

leetcode.com/problems/running-sum-of-1d-array/

 

Running Sum of 1d Array - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

 

 

RunningSum 구하기

처음부터 현재 인덱스까지 합이 Running Sum 이라네요. running sum[i] = nums[0]+ nums[1] + ... + nums[i]

for loop을 돌면서 앞에수 더하면 끝! 

 

 

 

간단한 문제였어요 ㅎㅎㅎ

Comments