Code Experts
Home
Challenges
Notes
Compiler
Forum
Exam
Contact
Sign in
Sign up
Home
Challenges
Notes
Compiler
Exam
Forum
Contact
Log In / Register
Copied To Clipboard !
Accumulating List
create a List as Input and calculate a list of the accumulating sum.
Example :=>
# [1, 3, 6, 10] can be written as [1, 1 + 2, 1 + 2 + 3, 1 + 2 + 3 + 4]
Code :
[1, 2, 3, 4]
Total :
0 Discussion
Login
Code (Optional)
Upload Code Image (Optional)
Post Your Comment