tryalgo
所属分类:数据结构
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2023-02-05 18:55:02
上 传 者:
sh-1993
说明: 编程竞赛准备的算法和数据结构:基础和高级
(Algorithms and data structures for preparing programming competitions: basic and advanced)
文件列表:
.coverage (69632, 2023-11-02)
CHANGELOG.md (1614, 2023-11-02)
LICENSE (1081, 2023-11-02)
MANIFEST (2103, 2023-11-02)
Makefile (541, 2023-11-02)
codecov.yaml (87, 2023-11-02)
docs/ (0, 2023-11-02)
docs/Makefile (7458, 2023-11-02)
docs/_static/ (0, 2023-11-02)
docs/_static/example_dijkstra.png (34731, 2023-11-02)
docs/_static/example_dijkstra.tex (1375, 2023-11-02)
docs/_static/logo_B.png (9915, 2023-11-02)
docs/_static/logo_B.xcf (16324, 2023-11-02)
docs/_static/logo_W.png (7442, 2023-11-02)
docs/_static/logo_white.png (8104, 2023-11-02)
docs/conf.py (10074, 2023-11-02)
docs/content.rst (31681, 2023-11-02)
docs/example_dijkstra.py (1565, 2023-11-02)
docs/index.rst (901, 2023-11-02)
docs/install.rst (328, 2023-11-02)
docs/quickstart.rst (3788, 2023-11-02)
docs/requirements.txt (99, 2023-11-02)
docs/tryalgo/ (0, 2023-11-02)
docs/tryalgo/modules.rst (58, 2023-11-02)
examples/ (0, 2023-11-02)
examples/TryAlgo Maps in Paris.ipynb (147139, 2023-11-02)
examples/arithm_expr_target.py (322, 2023-11-02)
examples/coin_change.py (402, 2023-11-02)
examples/paris.txt (630454, 2023-11-02)
examples/pathfinding_in_paris.html (5473, 2023-11-02)
examples/requirements.txt (40, 2023-11-02)
setup.py (1131, 2023-11-02)
... ...
[![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
## 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
近期下载者:
相关文件:
收藏者: