BY CATEGORY · Amazon
Amazon Coding & algorithms Interview Questions
Prepare for Amazon Coding & algorithms questions: 134 interview questions from real interviews. Read, practise and mock them on CSWork.
- Questions
- 134
- Updated
- 2026-10-06
Interview questions 134
Filter in the workspace- CodeStack Whose Pop Removes the Most Frequent Value, Ties Broken by RecencyMedium
- CodeLowest Common Manager of a Group of Employees in an Org ChartMedium
- QAnswer a large batch of variable-ratio queries from division equationsMedium
- CodeSimulate one disc-flipping board game move across all eight directionsMedium
- CodeGrid Reachability for a Robot That Cannot Reverse and Has Restricted TurnsMedium
- CodeMaximize the Bitwise AND of K Elements After Spending an Increment BudgetHard
- CodeMaximize the number of binary strings chosen under zero and one budgetsMedium
- CodeFind the deepest shared ancestor of two keys in a binary search treeMedium
- CodeSearch a Folder Hierarchy with Extensible Document FiltersMedium
- CodeMerge Sorted Event Streams Through an IteratorMedium
- CodeMinimize Grid Inconvenience by Adding One Delivery CenterMedium
- CodeCheck a Palindrome While Ignoring Case and PunctuationEasy
- CodeMinimum Adjacent Swaps to Group a Binary ArrayMedium
- QSpreadsheet Formulas with Dependency UpdatesMedium
- CodeAdd One Source to Minimize Grid InconvenienceMedium
- CodeMinimize Points Used Across Multiple Reward ProgramsMedium
- CodeFind Valid IP Addresses in FilesMedium
- CodeAdd, Remove, and Find Values in a Bounded Integer UniverseMedium
- CodeImplement Cache and Rotate MatrixMedium
- CodeDetermine Whether a Binary Tree Is a Valid BSTMedium
- CodeSolve Two Array Optimization ProblemsHard
- CodeFind the K-th Smallest Value in Two Sorted ArraysMedium
- CodeGroup Anagrams Without Sorted Character SignaturesMedium
- CodeBuild a BFS Web CrawlerMedium
- CodeCompute Latencies and Search Grid PathMedium
- CodeEvaluate IP Access RulesHard
- QSolve Nearby Inventory and Word Segmentation TasksMedium
- QReturn all valid word-break sentencesHard
- CodeCount unique Morse-code word transformationsHard
- CodeSolve Two OA Algorithm ProblemsMedium
- CodeFind the Largest Rating Threshold Supported by K InstancesHard
- CodeImplement K-means and solve interval/frequency tasksMedium
- CodeFind shortest transformation steps in a word graphMedium
- CodeImplement PyTorch training loopMedium
- CodeFind shortest path in a grid with obstaclesMedium
- CodeImplement integer division without using divisionMedium
- CodeCompute peak parking lot occupancy intervalsMedium
- CodeImplement decoder-only GPT-style transformerMedium
- CodeDesign LFU cache with distributed extensionMedium
- QSolve two set and graph problemsMedium
- CodeCheck if adding edge creates cycle in digraphMedium
- CodeFind all cells reachable by downhill flowEasy
- CodeSolve two-sum variants at scaleMedium
- QImplement a high-throughput web crawler safelyMedium
- CodeGenerate primes up to n efficientlyMedium
- CodeCompute array modes with ties and no-mode ruleMedium
- CodeImplement streaming k-way merge with constraintsMedium
- CodeSolve stock, BFS path, and merge intervalsMedium
- CodeImplement list overlap and dense-ranked word frequenciesMedium
- CodeMaximize total bandwidth of data channel pairsHard
- CodeMaximize memory capacity with primary-backup serversHard
- QSolve server updates and grid inconvenience minimizationMedium
- QOptimize with a cache/hash mapMedium
- QMaintain real-time top-K products from eventsMedium
- QJustify choosing JavaScript for interviewsMedium
- QImplement robust debounce and throttle in JavaScriptMedium
- QImplement a robust shell CLIMedium
- QFind longest common contiguous subarrayMedium
- QDetect words formed by multiple dictionary partsMedium
- CodeSort characters by frequencyMedium