Comments (3)
oui mais avec sorted(w) on n’a pas enlevé les doublons, et la complexité est plus grande (nlogn au lieu de n — sous hypothèse que les fonctions de hashage soient sans trop de collisions)
from tryalgo.
@xtof-durr Pour être bien clair : je parle du fichier de test https://github.com/jilljenn/tryalgo/blob/master/tests/test_tryalgo.py#L90
Je ne sais pas si la complexité est très importante ici, mais je pense que justement, un test plus strict permet éventuellement de repérer plus d'erreurs dans le code testé (même si ici, je doute en effet qu'anagrams ait ce problème ; c'est une issue très mineure).
from tryalgo.
C'est une superbe idée, je viens de changer order pour qu'elle utilise ordered.
Pour les tests la complexité n'est pas trop importante.
from tryalgo.
Related Issues (20)
- arithm_expr_eval.py doc: line parameter for arithm_expr_parse is not a string HOT 1
- Kuhn-Munkres in O(n³) doesn't need matching set sizes HOT 1
- Missing newline for tryalgo.kruskal.UnionFind.union HOT 2
- Typo in a link in the doc HOT 11
- I think we need the list of 128 algorithms on the README HOT 1
- Misleading comment in the book for Rabin Karp algorithm HOT 4
- anagrams.py input ? HOT 3
- Problem with consecutive ones HOT 8
- Trivial C1P is not validated HOT 2
- Invalid Book link HOT 1
- Add pyproject.toml HOT 1
- Add SPFA
- Fix coverage HOT 1
- Search does not work in docs HOT 1
- Data Input Format for Gale-Shapley HOT 1
- Fix tiles in TryAlgo in Paris HOT 3
- Small improvements to code
- Speed up bipartite matching and Ford-Fulkerson
- Benchmark union of rectangles HOT 1
- import tryalgo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tryalgo.