cswork / companiesOpen practice workspace

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
  1. CodeStack Whose Pop Removes the Most Frequent Value, Ties Broken by RecencyMedium
  2. CodeLowest Common Manager of a Group of Employees in an Org ChartMedium
  3. QAnswer a large batch of variable-ratio queries from division equationsMedium
  4. CodeSimulate one disc-flipping board game move across all eight directionsMedium
  5. CodeGrid Reachability for a Robot That Cannot Reverse and Has Restricted TurnsMedium
  6. CodeMaximize the Bitwise AND of K Elements After Spending an Increment BudgetHard
  7. CodeMaximize the number of binary strings chosen under zero and one budgetsMedium
  8. CodeFind the deepest shared ancestor of two keys in a binary search treeMedium
  9. CodeSearch a Folder Hierarchy with Extensible Document FiltersMedium
  10. CodeMerge Sorted Event Streams Through an IteratorMedium
  11. CodeMinimize Grid Inconvenience by Adding One Delivery CenterMedium
  12. CodeCheck a Palindrome While Ignoring Case and PunctuationEasy
  13. CodeMinimum Adjacent Swaps to Group a Binary ArrayMedium
  14. QSpreadsheet Formulas with Dependency UpdatesMedium
  15. CodeAdd One Source to Minimize Grid InconvenienceMedium
  16. CodeMinimize Points Used Across Multiple Reward ProgramsMedium
  17. CodeFind Valid IP Addresses in FilesMedium
  18. CodeAdd, Remove, and Find Values in a Bounded Integer UniverseMedium
  19. CodeImplement Cache and Rotate MatrixMedium
  20. CodeDetermine Whether a Binary Tree Is a Valid BSTMedium
  21. CodeSolve Two Array Optimization ProblemsHard
  22. CodeFind the K-th Smallest Value in Two Sorted ArraysMedium
  23. CodeGroup Anagrams Without Sorted Character SignaturesMedium
  24. CodeBuild a BFS Web CrawlerMedium
  25. CodeCompute Latencies and Search Grid PathMedium
  26. CodeEvaluate IP Access RulesHard
  27. QSolve Nearby Inventory and Word Segmentation TasksMedium
  28. QReturn all valid word-break sentencesHard
  29. CodeCount unique Morse-code word transformationsHard
  30. CodeSolve Two OA Algorithm ProblemsMedium
  31. CodeFind the Largest Rating Threshold Supported by K InstancesHard
  32. CodeImplement K-means and solve interval/frequency tasksMedium
  33. CodeFind shortest transformation steps in a word graphMedium
  34. CodeImplement PyTorch training loopMedium
  35. CodeFind shortest path in a grid with obstaclesMedium
  36. CodeImplement integer division without using divisionMedium
  37. CodeCompute peak parking lot occupancy intervalsMedium
  38. CodeImplement decoder-only GPT-style transformerMedium
  39. CodeDesign LFU cache with distributed extensionMedium
  40. QSolve two set and graph problemsMedium
  41. CodeCheck if adding edge creates cycle in digraphMedium
  42. CodeFind all cells reachable by downhill flowEasy
  43. CodeSolve two-sum variants at scaleMedium
  44. QImplement a high-throughput web crawler safelyMedium
  45. CodeGenerate primes up to n efficientlyMedium
  46. CodeCompute array modes with ties and no-mode ruleMedium
  47. CodeImplement streaming k-way merge with constraintsMedium
  48. CodeSolve stock, BFS path, and merge intervalsMedium
  49. CodeImplement list overlap and dense-ranked word frequenciesMedium
  50. CodeMaximize total bandwidth of data channel pairsHard
  51. CodeMaximize memory capacity with primary-backup serversHard
  52. QSolve server updates and grid inconvenience minimizationMedium
  53. QOptimize with a cache/hash mapMedium
  54. QMaintain real-time top-K products from eventsMedium
  55. QJustify choosing JavaScript for interviewsMedium
  56. QImplement robust debounce and throttle in JavaScriptMedium
  57. QImplement a robust shell CLIMedium
  58. QFind longest common contiguous subarrayMedium
  59. QDetect words formed by multiple dictionary partsMedium
  60. CodeSort characters by frequencyMedium