Skip to main content Link Search Menu Expand Document (external link)

TryAlgo: Algorithmic Problem Solving

Latest posts

SWERC 2016

Code: the tryalgo Python library of 128+ algorithms

Demo: shortest paths in Paris
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.

Here is some pseudocode to optimize your learning:

import tryalgo                 # import all you can eat

    problem = read(statement)    # needs organisation
    algo = solve(problem)        # needs skills
    solution = implement(algo)   # needs experience
    answer = submit(solution)
    assert answer == "Accept"
except SubmissionError: