Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Algorithms and data structures for preparing programming competitions: basic and advanced

License

NotificationsYou must be signed in to change notification settings

jilljenn/tryalgo

Repository files navigation

PyPIPyPIPylint scoreCodecov

Algorithmic Problem Solving

Algorithms and data structures for preparing programming competitions (e.g. ICPC,see more) and coding interviews.
By Christoph Dürr and Jill-Jênn Vie.

Our book is available in French, English, Simplified and Traditional Chinese.

Install

pip install tryalgo

Documentation

Shortest paths on the graph of Paris.

To run it yourself:

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

Usage

Dynamic programming some example with coin change:

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

Des chiffres et des lettres (that inspiredCountdown)

fromtryalgo.arithm_expr_targetimportarithm_expr_targetarithm_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 topractice your programming skills!

python-munittest

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 pylintmake pycodestyle  # PEP8make pylint

Found a bug?

Pleasedrop an issue.

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

About

Algorithms and data structures for preparing programming competitions: basic and advanced

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors14


[8]ページ先頭

©2009-2025 Movatter.jp