e.g. leetcode LRU 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 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 from this operation, evict the least recently used key. The functions get and put must each run in O(1) average time complexity.
Sde Interview Questions
16,619 sde interview questions shared by candidates
1. Search bar with debouncing and some more optimisation like how to handle race conditions, cache implementation
What is hoisting in Javascript ?
He asked mainly java,sql, project
Find the k-th largest element in an array
Q2. Print length longest subsequence from two given strings
Q1. What is polymorphism, overriding? Demonstrate by code example?
Write the code to check if a string is palindrome or not
DSA, Low and high level
All the core concepts in computer science
Viewing 1531 - 1540 interview questions
See Interview Questions for Similar Jobs
Ruby DeveloperRuby On Rails DeveloperRuby On Rails Software EngineerSoftware TraineeSoftware Engineer C#Ruby On Rails Ror GithubRails DeveloperSoftware Engineer Front EndSoftware Engineer Developer Entry Level Ruby On RaSoftware Developer Entry LevelSoftware Developer FresherSoftware Engineer CoopSenior Ruby On Rails DeveloperJunior Ruby On Rails DeveloperSoftware Applications DeveloperSoftware Engineer Web DeveloperPhp Software DeveloperSoftware Engineer Ux