7 kyu

Sum it continuously

1,631 of 2,770Cptnprice

Description:

Make a function "add" that will be able to sum elements of list continuously and return a new list of sums.

For example:

add [1,2,3,4,5] == [1, 3, 6, 10, 15], because it's calculated like 
this : [1, 1 + 2, 1 + 2 + 3, 1 + 2 + 3 + 4, 1 + 2 + 3 + 4 + 5]

If you want to learn more see https://en.wikipedia.org/wiki/Prefix_sum

Fundamentals
Lists

Stats:

CreatedSep 9, 2017
PublishedSep 10, 2017
Warriors Trained3809
Total Skips25
Total Code Submissions5963
Total Times Completed2770
Python Completions1631
Haskell Completions172
CoffeeScript Completions16
Nim Completions26
JavaScript Completions739
C++ Completions264
C Completions49
Total Stars35
% of votes with a positive feedback rating92% of 412
Total "Very Satisfied" Votes351
Total "Somewhat Satisfied" Votes53
Total "Not Satisfied" Votes8
Total Rank Assessments13
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • Cptnprice Avatar
  • Beast Avatar
  • BartBee Avatar
  • tachyonlabs Avatar
  • Voile Avatar
  • SylarDoom Avatar
  • rowcased Avatar
  • metagn Avatar
  • tonylicoding Avatar
  • user8436785 Avatar
  • tobeannouncd Avatar
  • o2001 Avatar
  • saudiGuy Avatar
Ad