tryalgo


Nametryalgo JSON
Version 1.7.0 PyPI version JSON
download
home_pagehttps://jilljenn.github.io/tryalgo/
SummaryAlgorithms and data structures for preparing programming competitions
upload_time2024-03-01 15:19:51
maintainer
docs_urlNone
authorJill-Jênn Vie and Christoph Dürr
requires_python
licenseMIT
keywords algorithms data-structures programming competition
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![PyPI](https://img.shields.io/pypi/v/tryalgo.svg)](https://pypi.python.org/pypi/tryalgo/)
[![PyPI](https://img.shields.io/pypi/pyversions/tryalgo.svg)](https://pypi.python.org/pypi/tryalgo/)
![Pylint score](https://mperlet.github.io/pybadge/badges/10.svg)
[![Codecov](https://img.shields.io/codecov/c/github/jilljenn/tryalgo.svg)](https://codecov.io/gh/jilljenn/tryalgo/)

# Algorithmic Problem Solving

Algorithms and data structures for preparing programming competitions (e.g. ICPC, [see more](https://tryalgo.org/contests/)) and coding interviews.  
By Christoph Dürr and Jill-Jênn Vie.

[Our book](https://tryalgo.org/book) is available in French, English, Simplified and Traditional Chinese.

## Install

    pip install tryalgo

## Documentation

- [Documentation](http://jilljenn.github.io/tryalgo/) of tryalgo 1.4
- [Blog tryalgo.org](http://tryalgo.org) in French and English

## Demo: [TryAlgo in Paris](http://nbviewer.jupyter.org/github/jilljenn/tryalgo/blob/master/examples/TryAlgo%20Maps%20in%20Paris.ipynb)

Shortest paths on the graph of Paris.

To run it yourself:

    pip install -r examples/requirements.txt
	jupyter notebook  # Then go to examples folder

<a href="http://nbviewer.jupyter.org/github/jilljenn/tryalgo/blob/master/examples/TryAlgo%20Maps%20in%20Paris.ipynb"><img src="http://tryalgo.org/static/paris.png" /></a>

## Usage

**Dynamic programming** some example with coin change:

```python
from tryalgo import coin_change

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

***Des chiffres et des lettres*** (that inspired *Countdown*)

```python
from 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'`.

## Tests

All algorithms are thoroughly tested. These tests can be used to [practice your programming skills](https://tryalgo.org/en/miscellaneous/2019/08/10/how-to-practice-algorithms-with-tryalgo/)!

```python
python -m unittest
```

Most snippets from the book are within 76 columns (French version) or 75 columns (English version).

Our code is checked. Using optional requirements, you can check it too:

    pip install pycodestyle pylint
    make pycodestyle  # PEP8
	make pylint

## Found a bug?

Please [drop an issue](https://github.com/jilljenn/tryalgo/issues).

## Authors

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

## Contributors

Thanks!

- Louis Abraham
- Lilian Besson
- Xavier Carcelle
- Stéphane Henriot
- Ryan Lahfa
- Olivier Marty
- Samuel Tardieu

            

Raw data

            {
    "_id": null,
    "home_page": "https://jilljenn.github.io/tryalgo/",
    "name": "tryalgo",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "algorithms data-structures programming competition",
    "author": "Jill-J\u00eann Vie and Christoph D\u00fcrr",
    "author_email": "christoph.durr@lip6.fr",
    "download_url": "https://files.pythonhosted.org/packages/7f/0d/97a492e2570d44f3d769b294bbe05d95408086d0946cac296e0bb34a0dc7/tryalgo-1.7.0.tar.gz",
    "platform": null,
    "description": "[![PyPI](https://img.shields.io/pypi/v/tryalgo.svg)](https://pypi.python.org/pypi/tryalgo/)\n[![PyPI](https://img.shields.io/pypi/pyversions/tryalgo.svg)](https://pypi.python.org/pypi/tryalgo/)\n![Pylint score](https://mperlet.github.io/pybadge/badges/10.svg)\n[![Codecov](https://img.shields.io/codecov/c/github/jilljenn/tryalgo.svg)](https://codecov.io/gh/jilljenn/tryalgo/)\n\n# Algorithmic Problem Solving\n\nAlgorithms and data structures for preparing programming competitions (e.g. ICPC, [see more](https://tryalgo.org/contests/)) and coding interviews.  \nBy Christoph D\u00fcrr and Jill-J\u00eann Vie.\n\n[Our book](https://tryalgo.org/book) is available in French, English, Simplified and Traditional Chinese.\n\n## Install\n\n    pip install tryalgo\n\n## Documentation\n\n- [Documentation](http://jilljenn.github.io/tryalgo/) of tryalgo 1.4\n- [Blog tryalgo.org](http://tryalgo.org) in French and English\n\n## Demo: [TryAlgo in Paris](http://nbviewer.jupyter.org/github/jilljenn/tryalgo/blob/master/examples/TryAlgo%20Maps%20in%20Paris.ipynb)\n\nShortest paths on the graph of Paris.\n\nTo run it yourself:\n\n    pip install -r examples/requirements.txt\n\tjupyter notebook  # Then go to examples folder\n\n<a href=\"http://nbviewer.jupyter.org/github/jilljenn/tryalgo/blob/master/examples/TryAlgo%20Maps%20in%20Paris.ipynb\"><img src=\"http://tryalgo.org/static/paris.png\" /></a>\n\n## Usage\n\n**Dynamic programming** some example with coin change:\n\n```python\nfrom tryalgo import coin_change\n\nprint(coin_change([3, 5, 11], 29))  # True because 29 = 6 x 3 + 0 x 5 + 1 x 11\n```\n\n***Des chiffres et des lettres*** (that inspired *Countdown*)\n\n```python\nfrom tryalgo.arithm_expr_target import arithm_expr_target\n\narithm_expr_target([25, 50, 75, 100, 3, 6], 952)\n```\n\nReturns `'((((75*3)*(100+6))-50)/25)=952'`.\n\n## Tests\n\nAll algorithms are thoroughly tested. These tests can be used to [practice your programming skills](https://tryalgo.org/en/miscellaneous/2019/08/10/how-to-practice-algorithms-with-tryalgo/)!\n\n```python\npython -m unittest\n```\n\nMost snippets from the book are within 76 columns (French version) or 75 columns (English version).\n\nOur code is checked. Using optional requirements, you can check it too:\n\n    pip install pycodestyle pylint\n    make pycodestyle  # PEP8\n\tmake pylint\n\n## Found a bug?\n\nPlease [drop an issue](https://github.com/jilljenn/tryalgo/issues).\n\n## Authors\n\n\u00a9 2016\u20132023, Christoph D\u00fcrr and Jill-J\u00eann Vie (vie@jill-jenn.net).  \nReleased under the MIT License.\n\n## Contributors\n\nThanks!\n\n- Louis Abraham\n- Lilian Besson\n- Xavier Carcelle\n- St\u00e9phane Henriot\n- Ryan Lahfa\n- Olivier Marty\n- Samuel Tardieu\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Algorithms and data structures for preparing programming competitions",
    "version": "1.7.0",
    "project_urls": {
        "Homepage": "https://jilljenn.github.io/tryalgo/"
    },
    "split_keywords": [
        "algorithms",
        "data-structures",
        "programming",
        "competition"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eea1fe68386037989f0afe12baf0fb25584fa65cbaeb02777762989f46c8d153",
                "md5": "9723224230dd979e6f806001d4a4df19",
                "sha256": "425b0b17feeef387f449aa25ab63e90e60556c9ca266cc7e961b4bc8b3c10645"
            },
            "downloads": -1,
            "filename": "tryalgo-1.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9723224230dd979e6f806001d4a4df19",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 106568,
            "upload_time": "2024-03-01T15:19:49",
            "upload_time_iso_8601": "2024-03-01T15:19:49.256895Z",
            "url": "https://files.pythonhosted.org/packages/ee/a1/fe68386037989f0afe12baf0fb25584fa65cbaeb02777762989f46c8d153/tryalgo-1.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7f0d97a492e2570d44f3d769b294bbe05d95408086d0946cac296e0bb34a0dc7",
                "md5": "bc2c5c1b1c123e0a423558ab948ea29b",
                "sha256": "b594bb0b04fc0fcfe497969f5f632c4577e7a60a9a2ca8756c2fcf5b3d526dc9"
            },
            "downloads": -1,
            "filename": "tryalgo-1.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "bc2c5c1b1c123e0a423558ab948ea29b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 97694,
            "upload_time": "2024-03-01T15:19:51",
            "upload_time_iso_8601": "2024-03-01T15:19:51.117566Z",
            "url": "https://files.pythonhosted.org/packages/7f/0d/97a492e2570d44f3d769b294bbe05d95408086d0946cac296e0bb34a0dc7/tryalgo-1.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-01 15:19:51",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "tryalgo"
}
        
Elapsed time: 0.19228s