Skip to content

Commit 9b9ba2d

Browse files
committed
defined sum array
1 parent f44fa47 commit 9b9ba2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ruby_intro.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
def sum arr
66
# YOUR CODE HERE
7+
arr.sum
78
end
89

910
def max_2_sum arr

0 commit comments

Comments
 (0)