Tagged articles
8 articles
Page 1 of 1
Architect's Guide
Architect's Guide
Jun 18, 2025 · Fundamentals

Master LRU Cache: O(1) Implementation with Hash-Linked List in Java

Learn how to design and implement an O(1) LRU (Least Recently Used) cache in Java using a combined hash map and doubly linked list, covering algorithm concepts, data structure choices, method details, and complete code with examples and explanations.

Doubly Linked ListJavaO(1) Operations
0 likes · 10 min read
Master LRU Cache: O(1) Implementation with Hash-Linked List in Java
IT Services Circle
IT Services Circle
Mar 12, 2024 · Fundamentals

LRU Cache Design and Java Implementation with O(1) Operations

This article explains the LeetCode LRU Cache problem, detailing the required class interface, operational constraints, and provides a thorough Java solution using a HashMap combined with a doubly linked list to achieve O(1) time complexity for get and put operations.

Data StructuresDoubly Linked ListHashMap
0 likes · 10 min read
LRU Cache Design and Java Implementation with O(1) Operations
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 3, 2020 · Fundamentals

Understanding LRU Cache: Interview Thought Process and Implementation

This article explains why technical interviews focus on problem‑solving skills, outlines a four‑step interview approach, introduces the LRU cache eviction policy, analyzes required operations, selects HashMap plus a doubly linked list as the optimal data structures, and provides a complete Java implementation with detailed commentary.

Cache EvictionDoubly Linked ListHashMap
0 likes · 15 min read
Understanding LRU Cache: Interview Thought Process and Implementation