4 ms·
Is there a website that would gather different solution to those problems (or other similar problems, like Advent of Code) written in Python preferably sorted b
by yeellow 5y ago
Is there a website that would gather different solution to those problems (or other similar problems, like Advent of Code) written in Python preferably sorted by some rating? I don't want to scroll the long list of similar solutions but I would like to see selected interesting attempts. I think it's a good way to learn new tricks and useful libraries, but searching for different solutions on blogs/git repos/long reddit threads is no fun.
- emi2k01 5y agoProject Euler explicitly says this [1]: > I learned so much solving problem XXX, so is it okay to publish my solution elsewhere? > It appears that you have answered your own question. There is nothing quite like that "Aha!" moment when you finally beat a problem which you have been working on for some time. It is often through the best of intentions in wishing to share our insights so that others can enjoy that moment too. Sadly, that will rarely be the case for your readers. Real learning is an active process and seeing how it is done is a long way from experiencing that epiphany of discovery. Please do not deny others what you have so richly valued yourself. > However, the rule about sharing solutions outside of Project Euler does not apply to the first one-hundred problems, as long as any discussion clearly aims to instruct methods, not just provide answers, and does not directly threaten to undermine the enjoyment of solving later problems. Problems 1 to 100 provide a wealth of helpful introductory teaching material and if you are able to respect our requirements, then we give permission for those problems and their solutions to be discussed elsewhere. I'd advise anyone who wants to solve the first 100 problems against looking their solutions online. They are simple enough to not require you to research complex topics to solve them as later problems do. I'd recommend Rosetta Code [2] if someone wants to have a look at a programming language in action. [1] https://projecteuler.net/about https://projecteuler.net/about [2] http://www.rosettacode.org/wiki/Category:Programming_Languages http://www.rosettacode.org/wiki/Category:Programming_Languag...
- dahart 5y agoProject Euler has exactly what you’re asking for. The catch is that you have to solve the problem first before seeing the list of selected solutions. Once you input the right answer, the solutions there are limited to solutions that have been upvoted, and recent solutions. The recent solutions disappear as new ones arrive, but the upvoted ones stick around. This is a fabulous way to learn new tricks and insights, as long as you’re up for sticking with it. Solving the problems does force you to be invested, and it’s great to see how much better/faster/smaller/smarter some other people’s solutions are once you’ve had to come up with your own way.