// Java, from first principles
Data structures, concurrency primitives, and a DI container — built from scratch and test-driven, to prove how the abstractions actually work underneath.
Overview
Not a library to use — a proof of understanding. The set builds on itself: the LRU cache reuses the hand-written HashMap and linked list, the thread pool runs on the blocking queue, and the DI container caches its singletons in the HashMap.
MyHashMap — chaining, resize, bit-spread indexMyArrayList — amortized-O(1) dynamic arrayMyLinkedList — doubly linkedMyStack · MyQueue (ring buffer)MyPriorityQueue — binary heapMyLRUCache — O(1) get/put + evictionsynchronized vs CASExplore