Merge branch 'master' into updated-gems
This commit is contained in:
commit
9fb6597980
38 changed files with 352 additions and 223 deletions
|
|
@ -9,4 +9,11 @@ class String
|
|||
string
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class Array
|
||||
def cumulative_sum
|
||||
csum = 0
|
||||
self.map{|val| csum += val}
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue