Comments (2)
I think it is just the KeysWithPrefix
function that was broken with unicode. I pushed a commit that should fix it now, let me know if you are having further problems though. Ideally we can avoid storing runes in the trie to avoid needing to convert strings to slices of runes (the copy/conversion can be costly).
from generic.
Ah yes, you're right of course. A trie of bytes will work in just the same way as a tree of runes (apart from the performance difference). Thanks for the patch.
from generic.
Related Issues (20)
- Add FIFO Queue HOT 1
- package "constraints" has been removed since go 1.18 rc1 HOT 1
- Feature Request - Generic Algorithms HOT 1
- that queue's Dequeue and Peek methods can occur panic is unacceptable HOT 3
- Trie is broken
- More features for `mapset` HOT 2
- functional operations support HOT 4
- are these structures concurrent safe? HOT 1
- Opt-in to hacktoberfest HOT 1
- Trie Remove implementation is inefficient HOT 2
- Btree Each() need exit
- Add Persistent Rope HOT 3
- The generic List implementation leaks HOT 2
- Improving/Measure performance of hashmap HOT 2
- Add support for converting a HashSet to an Array or a Slice HOT 1
- Add Unrolled Linked List HOT 2
- ulist package is missing a README.md
- bugfix: you should always check the parameter x1, x2 value of array2d.RowSpan(x1, x2, y int) []T method. HOT 1
- prope is not included in release 1.21.1
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 generic.