TryAlgo: Algorithmic Problem Solving
Latest posts
- Mar 27, 2024 Count particular rectangles in a matrix – Christoph Dürr, Pavel Kunyavskiy, Aris Pagourtzis
- Mar 1, 2024 Suffix Array – Christoph Dürr
- Jan 3, 2024 PC Trees – Rami Benelmir, Christoph Dürr, Erisa Kohansal and Yanni Lefki
- Dec 22, 2023 Largest rectangle under an histogram – Jill-Jênn Vie
- Dec 5, 2023 AI and LLM in education – Jill-Jênn Vie
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()