esimov / gogu Goto Github PK
View Code? Open in Web Editor NEWA comprehensive, reusable and efficient concurrent-safe generics utility functions and data structures library.
License: MIT License
A comprehensive, reusable and efficient concurrent-safe generics utility functions and data structures library.
License: MIT License
Both slist
and dlist
have exported (public) methods which do return the inner implementation of their "node" type.
For example:
Line 42 in c059939
This can be solved in two ways:
singleNode
and doubleNode
public by exporting them;singleNode
and doubleNode
are part of the inner implementation of their corresponding list, usually these types should be private. For example, if the take a look at the Java OpenJDK implementation of the LinkedList
from the static library, we can see that the Node
class is private and it is not used as a return type for anything which part of the public API. I suggest, having the same approach here as well.Least recently used (LRU) cache is a data structure which provides O(1) time access for any stored value based on a key, while having the ability to provide an O(1) access to the last used value as well. The size of the cache is limited, when this limit is reached, the oldest values will be evicted.
A possible implementation for this data structure can be found in this PR: #4
Depending on your choice, it could be merged, or you could discard it and use it as a basis of a possible future implementation.
Under strings utility functions I think the parameterize
function it would be much appreciated and helpful. Here is the Ruby o Rails documentation:
https://api.rubyonrails.org/v7.0.4/classes/ActiveSupport/Inflector.html#method-i-parameterize
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.