challenges-algorithms icon indicating copy to clipboard operation
challenges-algorithms copied to clipboard

Problem: SumOfArray

Open SiddharthChaberia opened this issue 3 years ago • 8 comments

def simpleArraySum(a):
    return sum(a)

Hopefully this counts as a contribution for Hacktober2022 ✨

SiddharthChaberia avatar Oct 02 '22 04:10 SiddharthChaberia

hi, @SiddharthChaberia can I work on this?

Dhanush-2605 avatar Oct 03 '22 06:10 Dhanush-2605

Sure i guess? 😅

SiddharthChaberia avatar Oct 03 '22 06:10 SiddharthChaberia

hi @SiddharthChaberia can you please check it

Dhanush-2605 avatar Oct 03 '22 09:10 Dhanush-2605

hi, @SiddharthChaberia can you please verify my code and let me know if I want to make any changes

Dhanush-2605 avatar Oct 03 '22 13:10 Dhanush-2605

sorry, but i m not much familiar with github.. where can i see ur approach?

SiddharthChaberia avatar Oct 03 '22 13:10 SiddharthChaberia

@SiddharthChaberia it is in pull request section

Dhanush-2605 avatar Oct 03 '22 13:10 Dhanush-2605

image this is my code

Dhanush-2605 avatar Oct 03 '22 13:10 Dhanush-2605

yeah, this is also correct, i just used inbuilt function to reduce the number of lines.. but ur ones is also good as it explains the inner part

SiddharthChaberia avatar Oct 03 '22 14:10 SiddharthChaberia