WoMakersCode / challenges-algorithms

Repositório referente à desafios sobre algoritmos da womakerscode
MIT License
112 stars 30 forks source link

Problem: SumOfArray #66

Open SiddharthChaberia opened 2 years ago

SiddharthChaberia commented 2 years ago
def simpleArraySum(a):
    return sum(a)

Hopefully this counts as a contribution for Hacktober2022 ✨

Dhanush-2605 commented 2 years ago

hi, @SiddharthChaberia can I work on this?

SiddharthChaberia commented 2 years ago

Sure i guess? 😅

Dhanush-2605 commented 2 years ago

hi @SiddharthChaberia can you please check it

Dhanush-2605 commented 2 years ago

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

SiddharthChaberia commented 2 years ago

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

Dhanush-2605 commented 2 years ago

@SiddharthChaberia it is in pull request section

Dhanush-2605 commented 2 years ago

image this is my code

SiddharthChaberia commented 2 years ago

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