• Stars
    star
    366
  • Rank 116,547 (Top 3 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 9 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

PyPI PyPI Pylint score Codecov

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

Demo: TryAlgo in Paris

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:

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)

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!

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.

Authors

© 2016–2023, Christoph Dürr and Jill-Jênn Vie ([email protected]).
Released under the MIT License.

Contributors

Thanks!

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

More Repositories

1

ktm

Knowledge Tracing Machines: Factorization Machines for Knowledge Tracing
Jupyter Notebook
130
star
2

business-card

A business card in LaTeX
TeX
28
star
3

tryalgo.org

Les 128 algorithmes qu'il faut avoir codés et compris dans sa vie en Python.
HTML
21
star
4

qna

Comparing models for adaptive testing (Rasch, DINA, MIRT, GenMA)
TeX
20
star
5

japan

Guide à l'arrache pour le Japon
Makefile
16
star
6

voyageavecmoi

Python
10
star
7

fautealgo

La Faute à l'algo
CSS
8
star
8

dktm

Deep Knowledge Tracing Machines
Python
8
star
9

phd

Modèles de tests adaptatifs pour le diagnostic de connaissances dans un cadre d’apprentissage à grande échelle
TeX
8
star
10

stage-python

JavaScript
6
star
11

photo2html

Make an album without using any external service. Creates a static page with flexbox.
HTML
6
star
12

sakt

Implementation of Self-Attentive Knowledge Tracing
Python
5
star
13

las2017

A few notes from Learning @ Scale 2017
4
star
14

slides

All my slides
TeX
4
star
15

vf

Vrai/Faux pour révisions
Python
3
star
16

fatedm

FATED: Fairness, Accountability, and Transparency in Educational Data
HTML
3
star
17

hashcode2016

Solutions for Hash Code 2016
Python
3
star
18

slam2018

Code for the Duolingo challenge http://sharedtask.duolingo.com
Python
2
star
19

vae

Variational Factorization Machines in TensorFlow and PyTorch
Python
2
star
20

tp-bdd

TP de bases de données
Python
2
star
21

iclr2019

Recommender system of ICLR 2019 posters
HTML
2
star
22

opendemocracynow

Open Democracy Now!
HTML
2
star
23

hashcode2014

Solutions for Google Hash Code 2014
OCaml
2
star
24

club-typo

Club de typographie de l'ENS Cachan
CSS
2
star
25

markov.py

Composing text, music, etc.
Python
2
star
26

tp-ml

Introduction to machine learning, practical lessons
Jupyter Notebook
2
star
27

drawful-clone

A Drawful clone built in Python
JavaScript
2
star
28

jj

My webpage
Python
1
star
29

algopedia

Encyclopédie d'algos collaborative
CSS
1
star
30

article

Convert articles in Markdown from GDrive to PDF
Python
1
star
31

trypandoc

Essayez pandoc !
Makefile
1
star
32

acm

C++
1
star
33

vacuum-cleaner

A vacuum-cleaner. A real one.
Python
1
star
34

try_git

1
star
35

jiji.cat

Soutenance de thèse JJV
CSS
1
star
36

item-response-theory-tutorial

Tutorial about Item Response Theory
Jupyter Notebook
1
star
37

moindre-action

Le principe de moindre action, illustré.
TeX
1
star
38

128algos-2.7

Workshop Meetup on May 31, 2016. Please update to Python 3! http://pythonclock.org
Jupyter Notebook
1
star
39

logement

Jupyter Notebook
1
star