-
Notifications
You must be signed in to change notification settings - Fork 0
dorserg/sparse_vector
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This data structure is basically a vector, items of which require no initialization. An item is initialized to default value the first time it's accessed. Clearing of all values takes O(1) time. It's handy for use cases when you have to frequently perform such operations on a big array: 1) initialize a few items in it 2) clear all items Inspired by this article: http://bit.ly/bDHfzA
About
neat data structure I wrote for fun one morning
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published