About 51,900 results
Open links in new tab
  1. LRU Cache - LeetCode

    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 …

  2. LFU Cache - LeetCode

    To determine the least frequently used key, a use counter is maintained for each key in the cache. The key with the smallest use counter is the least frequently used key.

  3. Cache With Time Limit - LeetCode

    Cache With Time Limit - Write a class that allows getting and setting key-value pairs, however a time until expiration is associated with each key. The class has three public methods: set (key, …

  4. Time Based Key-Value Store - LeetCode

    Can you solve this real interview question? Time Based Key-Value Store - Design a time-based key-value data structure that can store multiple values for the same key at different time …

  5. LeetCode - The World's Leading Online Programming Learning …

    Not only does LeetCode prepare candidates for technical interviews, we also help companies identify top technical talent. From sponsoring contests to providing online assessments and …

  6. Reorder List - LeetCode

    Example 1: [https://assets.leetcode.com/uploads/2021/03/04/reorder1linked-list.jpg] Input: head = [1,2,3,4] Output: [1,4,2,3] Example 2: …

  7. Design Most Recently Used Queue - LeetCode

    Subscribe to unlock. Thanks for using LeetCode! To view this question you must subscribe to premium.

  8. Discuss - LeetCode

    Aug 5, 2025 · Balancing Problem-Solving Skills and Financial Challenges During Learning Hello everyone,While preparing on LeetCode, I realized that coding practice is not just about …

  9. Kth Largest Element in an Array - LeetCode

    Can you solve this real interview question? Kth Largest Element in an Array - Given an integer array nums and an integer k, return the kth largest element in the array. Note that it is the kth …

  10. Explore - LeetCode

    LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore.