Releases: hoseiocean/DataStructuresKit
Releases · hoseiocean/DataStructuresKit
Fix dictionary literal duplicate key handling
Fixed
ExpressibleByDictionaryLiteralnow correctly sums counts for duplicate keys instead of overwriting
Before (bug)
let bag: Bag = ["a": 1, "a": 2]
bag.count(of: "a") // 2 ❌
bag.totalCount // 3 (inconsistent)After (fixed)
let bag: Bag = ["a": 1, "a": 2]
bag.count(of: "a") // 3 ✅
bag.totalCount // 3 ✅Internal
- Added
validateCounthelper for consistent count validation
v1.0.0 — Initial Release
DataStructuresKit 1.0.0
Initial release.
A comprehensive Swift data structures library featuring Stack, Queue, Deque, LinkedList, BinarySearchTree, AVLTree, Trie, Heap, PriorityQueue, Graph, and LRUCache.
Documentation
See README for full documentation and usage examples.