Basic and advanced algorithms and data structures
Python
Switch branches/tags
Nothing to show
Clone or download

README.md

Build Status PyPI

tryalgo

Basic and advanced algorithms and data structures
By Christoph Dürr and Jill-Jênn Vie.

Install

PyPI

pip install tryalgo

Additional information

Demo: TryAlgo in Paris

Usage

Dynamic programming some example with coin change:

from tryalgo import coin_change

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

Des chiffres et des lettres (that inspired Countdown)

tryalgo.arithm_expr_target import arithm_expr_target

arithm_expr_target([25, 50, 75, 100, 3, 6], 952)

Returns '((((75*3)*(100+6))-50)/25)=952'.

Found a bug?

Please drop an issue!

Authors

© Christoph Dürr and Jill-Jênn Vie (vie@jill-jenn.net).
Released under the MIT License.

Contributors include:

  • Louis Abraham
  • Lilian Besson
  • Stéphane Henriot
  • Ryan Lahfa
  • Olivier Marty