TryAlgo: Algorithmic Problem Solving
Latest posts
- Sep 28, 2024 Longest increasing subsequence – Jill-Jênn Vie
- Sep 11, 2024 Aho-Corasick – Christoph Dürr
- May 12, 2024 Approximations of the Euclidean metric traveling salesman problem – Jill-Jênn Vie
- Mar 27, 2024 Count particular rectangles in a matrix – Christoph Dürr, Pavel Kunyavskiy, Aris Pagourtzis
- Mar 1, 2024 Suffix Array – Christoph Dürr
Code: the tryalgo Python library of 128+ algorithms
pip install tryalgo
Book: Competitive Programming in Python
We published a book on competitive programming in Python. It contains typical algorithms like shortest paths, or Knuth-Morris-Pratt algorithm for pattern matching, but also some beautiful things you mainly encounter in programming competitions such as Fenwick trees.
- Buy in English (latest version)
- Acheter en français
- Other languages: Chinese, Taiwanese
- Check the errata
Here is some pseudocode to optimize your learning:
import tryalgo # import all you can eat
try:
problem = read(statement) # needs organisation
algo = solve(problem) # needs skills
solution = implement(algo) # needs experience
answer = submit(solution)
assert answer == "Accept"
except SubmissionError:
learn_more()