Microsoft | Service Engineer 2 (Mid Level) | Coding | Tech Screen
GUgupta1·
Interview Date:June 24, 2025Region:NA (North America)Hiring Team/Org:General Hire
Design a data structure that follows the constraints of a LRU Implement the LRUCache class: LRUCache(int capacity) Initialize the LRU cache with positive size capacity. int get(int key) Return the value of the key if the key exists, otherwise return 1. void put(int key, int value) Update the value of the key if the key exists. Otherwise, add the key value pair to the cache. If the number of keys exceeds the capacity...
Sign in to view the full interview experience
Create or use your InterviewDB account to read the full Warren post and all shared details.
Sign in to continue0