Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: SumOfArray #66

Open
SiddharthChaberia opened this issue Oct 2, 2022 · 8 comments
Open

Problem: SumOfArray #66

SiddharthChaberia opened this issue Oct 2, 2022 · 8 comments

Comments

@SiddharthChaberia
Copy link

SiddharthChaberia commented Oct 2, 2022

def simpleArraySum(a):
    return sum(a)

Hopefully this counts as a contribution for Hacktober2022 ✨

@Dhanush-2605
Copy link

hi, @SiddharthChaberia can I work on this?

@SiddharthChaberia
Copy link
Author

Sure i guess? 😅

@Dhanush-2605
Copy link

hi @SiddharthChaberia can you please check it

@Dhanush-2605
Copy link

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

@SiddharthChaberia
Copy link
Author

SiddharthChaberia commented Oct 3, 2022

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

@Dhanush-2605
Copy link

@SiddharthChaberia it is in pull request section

@Dhanush-2605
Copy link

image
this is my code

@SiddharthChaberia
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants