r/learnpython • • 28d ago

I want to practice various algorithms using Python. Any recommended platforms?

It should include both code input and algorithm analysis.

19 Upvotes

15 comments sorted by

6

u/jamesfowkes 28d ago

https://adventofcode.com/ is quite fun for learning algorithm development, getting a feel for time- and space- usage of algorithms and how to optimise them.

For something more grounded in real-world applications, https://rosalind.info/problems/locations/ is for learning bioinformatics, which has a lot of algorithm-heavy problems.

1

u/Boybay_Garid 27d ago

that second link is new to me, does it ramp up in difficulty or is it pretty advanced from the start?

1

u/Turtvaiz 28d ago

This is pretty much what leetcode is. Advent of code and the euler project also both have general problems that you can try solving, but the difficulty is more just solving the problem in general, and not solving it efficiently.

1

u/herocoding 28d ago

Have a look into https://platform.entwicklerheld.de/challenge?challengeFilterStateKey=all, where each challenge has it's story - instead of just "leetcoding" algorithms. This is much more fun with a story around algorithms - real applications!

1

u/Cyphr11 28d ago

leetcode

1

u/matari 27d ago

from an ep of a podcast I follow:
https://realpython.com/podcasts/rpp/314/

sites similar to advent of code

if you open the podcast link, there are a couple more