TryAlgo

128 algorithms in Python

We made a Python package available on PyPI :

pip install tryalgo

Several options:

An example: coin change

from tryalgo.subsetsum import coin_change

print(coin_change([3, 5, 11], 29))
# Returns True because 29 = 6*3 + 0*5 + 1*11

See the source code (6 lines)

Demo: Dijkstra’s algorithm on the graph of Paris

See our Jupyter notebook (in French): TryAlgo Maps in Paris