LRU Cache
Design a data structure for a Least Recently Used (LRU) cache with O(1) operations.
["LRUCache","put","get"], [[2],[1,1],[1]][null,null,1]Pattern breakdown, verified question volume, and topic weights based on recent candidate interview reports.
The Amazon Online Assessment (OA) for university graduates is commonly reported to feature Part 1: Coding Challenge (2 questions in 70 minutes on HackerRank) and Part 2: Workstyles Assessment (evaluating decisions against Amazon Leadership Principles). Questions frequently draw from HashMaps, heaps, breadth-first search, and two-pointer techniques.
Design a data structure for a Least Recently Used (LRU) cache with O(1) operations.
["LRUCache","put","get"], [[2],[1,1],[1]][null,null,1]Given a min-heap with N elements, what is the time complexity to find the maximum element?
Return an array where each element is the product of all others in O(n) without division.
nums = [1,2,3,4][24,12,8,6]Access the complete Amazon placement question bank, live code execution against test cases, AI-guided debugging hints, and placement readiness scores.
Pre-configures Amazon as your target company during onboarding. Free student access.