nayuki / Project-Euler-solutions

Runnable code for solving Project Euler problems in Java, Python, Mathematica, Haskell.
https://www.nayuki.io/page/project-euler-solutions
1.89k stars 675 forks source link

P002 update.py #45

Closed xiaowuc2 closed 4 years ago

xiaowuc2 commented 4 years ago

without using function

nayuki commented 4 years ago

Problems with your code:

xiaowuc2 commented 4 years ago

I know I've done dis-improvement in your work and there are time complexity I know those things I made that just for beginners that they can understand it when they are not using ' , ' then they can't write, x = y y=x just to make fundamentals clear I did that, and I am a beginner as well so I thought it would help others while checking out.

and the second problem you said I had no idea about that, I'm begging pardon for that.

jeremydouglass commented 4 years ago

@nayuki you might want to consider just warning people when they open pull requests that PRs will not be accepted. This type of repo tends to attract unsolicited contributions from enthusiastic beginners by its nature -- but from your responses it seems that perhaps PRs make you... angry? Maybe just drop in a PR template that says "Don't PR!" and it will appear before they try, saving their time and energy as well protecting your own.

https://help.github.com/en/github/building-a-strong-community/creating-a-pull-request-template-for-your-repository

Another complimentary strategy is to leave a single open PR in your Pull Requests lists, called eg. DO NOT PULL REQUEST. Then anyone clicking on the PR tab will see it.

nayuki commented 4 years ago

leave a single open PR in your Pull Requests lists, called eg. DO NOT PULL REQUEST. Then anyone clicking on the PR tab will see it

@jeremydouglass Done, thank you for your kind and helpful advice.

Created PR #46: Do not open pull requests. I will reject them.