Skip to content

[object%20Object]/2024/03/15/C-%E5%AE%9E%E7%8E%B0LRU%E7%AE%97%E6%B3%95/ #12

@beaudar-bot

Description

@beaudar-bot

C++实现LRU算法 - Wtoy's Blog

C++实现LRU算法描述原题:146. LRU 缓存 - 力扣(LeetCode) 请你设计并实现一个满足 LRU (最近最少使用) 缓存 约束的数据结构。 实现 LRUCache 类: LRUCache(int capacity) 以 正整数 作为容量 capacity 初始化 LRU 缓存 int get(int key) 如果关键字 key 存在于缓存中,则返回关键字的值,否则返回 -1

https://blog.wtoy.top/[object%20Object]/2024/03/15/C-%E5%AE%9E%E7%8E%B0LRU%E7%AE%97%E6%B3%95/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions