Adetayo Akinsanya unkletayo.dev
Engineering / Tags / #Algorithms
#Algorithms 15 Articles

Articles tagged with #Algorithms

A curated list of engineering series, deep dives, and notes related to #Algorithms.

Engineering Java Collections From Scratch • Part 25 2026-11-10

Building a Custom In-Memory Data Store in Java: The Collections Capstone

Build a production-grade in-memory key-value database in Java from scratch using custom data structures: HashMaps, LRU caches, priority queues, and SkipLists.

Read →
Engineering Java Collections From Scratch • Part 21 2026-10-27

Java IdentityHashMap Internals: Reference Equality & Open Addressing Probing

Learn how Java IdentityHashMap uses reference equality (==) and flat array linear probing to prevent infinite recursion in object graph serializers.

Read →
Engineering Java Collections From Scratch • Part 14 2026-10-02

Red-Black Tree Rotations Explained: Self-Balancing Trees in Java

Demystify Red-Black tree rotations and recoloring. Understand how Java TreeMap and HashMap maintain O(log N) balance guarantees.

Read →
Engineering Java Collections From Scratch • Part 10 2026-09-18

Java HashMap Internals (Part 2): Load Factor, Resizing & Red-Black Treeification

Learn how Java HashMap resizes its bucket table when reaching load factor threshold, and how JDK 8 treeifies long bucket chains.

Read →
Engineering Java Collections From Scratch • Part 9 2026-09-15

Java HashMap Internals (Part 1): Hashing Functions, Buckets & Separate Chaining

Deep dive into Java HashMap internals. Learn how hash functions, bitwise masking, and separate bucket chaining store key-value pairs.

Read →
Engineering Java Collections From Scratch • Part 8 2026-09-11

Building a Double-Ended Queue (Deque) in Java for Sliding Window Algorithms

Implement a custom ArrayDeque in Java for dual-ended operations. Solve sliding window maximum algorithms in O(1) time.

Read →
Engineering System Design & Distributed Systems from First Principles • Part 8 2026-09-11

Distributed Consensus Protocols: Paxos vs Raft Leader Election & Log Replication

Master distributed consensus. Compare Paxos and Raft leader election, log replication, safety invariants, and quorum math.

Read →
Engineering Java Collections From Scratch • Part 7 2026-09-08

Building a Circular Queue in Java: Array Ring Buffers and Modulo Math

Build a high-performance circular array queue in Java. Eliminate O(N) array shifts using modulo arithmetic head and tail pointers.

Read →
Engineering Java Collections From Scratch • Part 6 2026-09-04

Building a Custom Java Stack: LIFO Mechanics & Why Legacy Stack is Broken

Build a custom LIFO Stack in Java. Learn why java.util.Stack is obsolete and how ArrayDeque provides better performance.

Read →
Engineering System Design & Distributed Systems from First Principles • Part 6 2026-09-04

Gossip Protocols & Cluster Membership: How Decentralized Nodes Maintain Topology

Master Gossip Protocols and cluster membership. Learn how decentralized nodes detect failures and propagate state without a central master.

Read →
Engineering Java Collections From Scratch • Part 4 2026-08-28

Java LinkedList Internals: Building a Doubly Linked List from Scratch

Learn how Java LinkedList works under the hood by building a doubly linked list. Compare ArrayList vs LinkedList performance trade-offs.

Read →
Engineering System Design & Distributed Systems from First Principles • Part 4 2026-08-28

Consistent Hashing & Virtual Nodes: Distributing Keys Without Mass Resharding

Master Consistent Hashing and Virtual Nodes. Learn how distributed caches and databases route keys without mass key migration.

Read →
Engineering Java Collections From Scratch • Part 3 2026-08-25

How Java ArrayList Works Internally: Building a Dynamic Array from Scratch

Build a custom ArrayList in Java from scratch. Understand dynamic array resizing, System.arraycopy performance, and garbage collection.

Read →
Engineering System Design & Distributed Systems from First Principles • Part 3 2026-08-25

Vector Clocks and Conflict Resolution: Detecting Concurrent Writes in Distributed State

Master Vector Clocks and causal consistency. Learn how vector timestamps detect concurrent writes, manage sibling branches, and resolve conflicts.

Read →
Engineering System Design & Distributed Systems from First Principles • Part 2 2026-08-21

Time in Distributed Systems: Physical Clock Skew, NTP Drift, and Lamport Timestamps

Master time in distributed systems. Learn why physical clocks drift, NTP synchronization fails, and how Lamport Timestamps enforce logical event ordering.

Read →