Comments (3)
We modified the code to improve readability. Now it should be clear how to use this function.
from tryalgo.
Indeed, it requires a list of words, just like in the tests (see the split()
).
list(set(w))
removes the duplicates of this list. What version of Python are you using?
Python 3.7.5rc1 (default, Oct 8 2019, 16:47:45)
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> w = "je répète ce que je dis".split()
>>> set(w)
{'que', 'dis', 'répète', 'je', 'ce'}
>>> list(set(w))
['que', 'dis', 'répète', 'je', 'ce']
from tryalgo.
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
- 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.