Showing 3 of 3 questions
Design a logger that prevents too many messages from being printed within a certain time window. The logger should only print a message if it hasn't been printed recently.
#1. Logger Rate Limiter
Find the shortest path from the top-left to the bottom-right corner of a grid. You can eliminate a limited number of obstacles along the way.
#2. Shortest Path in a Grid with Obstacles Elimination
Design a data structure that acts as a Least Recently Used (LRU) cache. Implement methods to get and put key-value pairs, evicting the least recently used entry when the cache is full.
#3. LRU Cache
Page 1 of 1 · 3 total