---
title: "Discussion on \"LRU Cache (LeetCode)\" | Hashnode"
description: "Discussion on \"LRU Cache (LeetCode)\". Problem Description\nhttps://leetcode.com/problems/lru-cache/\nDesign a data structure that follows the constraints of a Least Recently Used (LRU) cache.\nImplement the LRUCache class:\n\nLRUCache(int capacity) Initialize the LRU cache with positive size ..."
url: "https://hashnode.com/posts/lru-cache-leetcode/6451ad5d51f8a5026ab373f4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LRU Cache (LeetCode)](https://alexkang.hashnode.dev/lru-cache-leetcode?utm_source=hashnode&utm_medium=feed)

Problem Description https://leetcode.com/problems/lru-cache/ Design a data structure that follows the constraints of a Least Recently Used (LRU) cache. Implement the LRUCache class: LRUCache(int capacity) Initialize the LRU cache with positive size ...

May 3, 2023 · 5 min read · alexkang.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#linkedlists](https://hashnode.com/tag/linkedlists)
-   [#lru-cache](https://hashnode.com/tag/lru-cache)

## Written by

[Alex Kang](https://hashnode.com/@alexkang)

@alexkang

  
[View profile](https://hashnode.com/@alexkang)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
