---
title: "Discussion on \"Implement LRU Cache\" | Hashnode"
description: "Discussion on \"Implement LRU Cache\". Problem statement\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 capacity.\n\nint get(int key) Return the valu..."
url: "https://hashnode.com/posts/implement-lru-cache/6485c72458499e6dcfbc851c"
---

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

Discussion

# [Implement LRU Cache](https://alkesh26.hashnode.dev/implement-lru-cache?utm_source=hashnode&utm_medium=feed)

Problem statement 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 capacity. int get(int key) Return the valu...

Jun 11, 2023 · 9 min read · alkesh26.hashnode.dev  
Read the article

-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#go](https://hashnode.com/tag/go)
-   [#cpp](https://hashnode.com/tag/cpp)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Alkesh Ghorpade](https://hashnode.com/@alkesh26)

@alkesh26 · Pune, India

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

Senior Sofware Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
