Showing 2 questions
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.
#1. LRU Cache
Determine if a binary string contains the binary representations of all numbers from 1 to N as substrings.
#2. Binary String With Substrings Representing 1 To N
Page 1 of 1 · 2 total