All questions
Advanced · JavaScript · Data structures
Implement an LRU cache
Commonly asked: Senior SDET and product-company rounds · ~20 min
Write a class LRUCache(capacity) with get(key) (returns value or -1) and put(key, value).
Checking your membership…
More JavaScript coding questions
- Playwright: log in with user-facing locatorsBasic · Locators
- Playwright: read the error messageIntermediate · Assertions
- Playwright: extract data from a tableIntermediate · Tables
- Playwright: click a button inside the right rowIntermediate · Locators
