Skip to content

Commit

Permalink
deploy: c069c96
Browse files Browse the repository at this point in the history
  • Loading branch information
xtof-durr committed Mar 13, 2024
0 parents commit e6b1fb3
Show file tree
Hide file tree
Showing 188 changed files with 70,046 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: e275b9976c18bdb62c8962f680b495f6
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file not shown.
Binary file added .doctrees/auto_examples/coin_change.doctree
Binary file not shown.
Binary file added .doctrees/auto_examples/index.doctree
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/content.doctree
Binary file not shown.
Binary file added .doctrees/environment.pickle
Binary file not shown.
Binary file added .doctrees/index.doctree
Binary file not shown.
Binary file added .doctrees/install.doctree
Binary file not shown.
Binary file added .doctrees/quickstart.doctree
Binary file not shown.
Binary file added .doctrees/sg_execution_times.doctree
Binary file not shown.
Binary file added .doctrees/tryalgo/modules.doctree
Binary file not shown.
Binary file added .doctrees/tryalgo/tryalgo.doctree
Binary file not shown.
Empty file added .nojekyll
Empty file.
Binary file not shown.
15 changes: 15 additions & 0 deletions _downloads/41c744db1cf4a54ec440b71925c999ed/coin_change.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""
Coin change
===========
"""

from tryalgo import coin_change
from tryalgo.subsetsum import coin_change


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

# %%
# An explanation of this code is given (in French) on our blog tryalgo.org by Clémence Réda:
#
# - `Rendu de monnaie, bases de programmation dynamique <https://tryalgo.org/fr/2016/12/11/rendudemonnaie/>`_
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n# Countdown\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"from tryalgo.arithm_expr_target import arithm_expr_target\n\narithm_expr_target([25, 50, 75, 100, 3, 6], 952)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Returns :code:`((((75*3)*(100+6))-50)/25)=952`.\n\nSee on our blog the [original Countdown video](https://tryalgo.org/fr/2017/03/14/le-compte-est-bon/) behind this example.\n\n"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Binary file not shown.
13 changes: 13 additions & 0 deletions _downloads/f56cc920f0c5cf5f8683c22296826edd/arithm_expr_target.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"""
Countdown
=========
"""

from tryalgo.arithm_expr_target import arithm_expr_target

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

# %%
# Returns :code:`((((75*3)*(100+6))-50)/25)=952`.
#
# See on our blog the `original Countdown video <https://tryalgo.org/fr/2017/03/14/le-compte-est-bon/>`_ behind this example.
50 changes: 50 additions & 0 deletions _downloads/fd670e98fa1dba77f5ceaee945117fa4/coin_change.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n# Coin change\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"from tryalgo import coin_change\nfrom tryalgo.subsetsum import coin_change\n\n\nprint(coin_change([3, 5, 11], 29)) # True because 29 = 6 x 3 + 0 x 5 + 1 x 11"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"An explanation of this code is given (in French) on our blog tryalgo.org by Cl\u00e9mence R\u00e9da:\n\n- [Rendu de monnaie, bases de programmation dynamique](https://tryalgo.org/fr/2016/12/11/rendudemonnaie/)\n\n"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Binary file added _images/example_dijkstra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/sphx_glr_arithm_expr_target_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/sphx_glr_coin_change_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e6b1fb3

Please sign in to comment.