Recent interview Questions for Amazon

Prepare better for apple

Hey, if you're thinking about acing that apple interview, we've got you covered! 🌟

We've gathered interview questions asked of candidates over the past six months from various sources.

The questions are currently in random order, but if you want them sorted from most frequently asked to less frequent, consider subscribing.

We'll send you personalized links to make your preparation even more tailored to your needs.

Best of luck with your interview journey! 🚀

  1. Binary Tree Maximum Path Sum
  2. Subsets II
  3. Customer Placing the Largest Number of Orders
  4. Rotate Image
  5. Path Sum II
  6. Find the Duplicate Number
  7. Nth Digit
  8. Sum of Square Numbers
  9. Count Sorted Vowel Strings
  10. Palindromic Substrings
  11. Shuffle the Array
  12. LRU Cache
  13. Binary Tree Postorder Traversal
  14. Find K Closest Elements
  15. Partition List
  16. Contains Duplicate III
  17. Interleaving String
  18. Inorder Successor in BST
  19. K-th Symbol in Grammar
  20. Random Pick with Weight
  21. Find All Numbers Disappeared in an Array
  22. Minimum Add to Make Parentheses Valid
  23. Binary Trees With Factors
  24. Gas Station
  25. 3Sum Smaller
  26. Vertical Order Traversal of a Binary Tree
  27. Excel Sheet Column Title
  28. 4Sum
  29. Check if a Parentheses String Can Be Valid
  30. Maximum Number of Events That Can Be Attended
  31. Word Subsets
  32. Jump Game II
  33. Root Equals Sum of Children
  34. Populating Next Right Pointers in Each Node
  35. Number of Islands
  36. Count Primes
  37. Longest Arithmetic Subsequence
  38. Build Array from Permutation
  39. Maximum Score Of Spliced Array
  40. Customers Who Never Order
  41. Sum of Subarray Minimums
  42. Find the Smallest Divisor Given a Threshold
  43. Daily Temperatures
  44. Non-overlapping Intervals
  45. Remove Duplicate Letters
  46. Sqrt(x)
  47. Boundary of Binary Tree
  48. Maximum Subarray
  49. 3Sum
  50. Remove Digit From Number to Maximize Result
  51. Minimize the Maximum Difference of Pairs
  52. Count Items Matching a Rule
  53. Trapping Rain Water
  54. Set Matrix Zeroes
  55. Valid Triangle Number
  56. Delete Node in a BST
  57. Maximum Number of Vowels in a Substring of Given Length
  58. Power of Four
  59. The Earliest and Latest Rounds Where Players Compete
  60. Best Time to Buy and Sell Stock with Transaction Fee
  61. Fibonacci Number
  62. Relative Sort Array
  63. Path with Maximum Gold
  64. Reverse Nodes in k-Group
  65. Move Zeroes
  66. Equal Row and Column Pairs
  67. Single Number III
  68. Reverse Linked List II
  69. Range Frequency Queries
  70. Validate Stack Sequences
  71. Partition Equal Subset Sum
  72. Container With Most Water
  73. Fizz Buzz
  74. Bitwise AND of Numbers Range
  75. First Unique Character in a String
  76. Rabbits in Forest
  77. Maximum Product Difference Between Two Pairs
  78. Check If Two String Arrays are Equivalent
  79. Best Time to Buy and Sell Stock IV
  80. Max Stack
  81. Diameter of Binary Tree
  82. Longest Increasing Subsequence
  83. Contiguous Array
  84. Merge Two Sorted Lists
  85. Combinations
  86. H-Index
  87. Copy List with Random Pointer
  88. Trapping Rain Water II
  89. Best Time to Buy and Sell Stock
  90. Grumpy Bookstore Owner
  91. Search in a Binary Search Tree
  92. Squares of a Sorted Array
  93. Permutations II
  94. Reverse Words in a String III
  95. Longest Common Prefix
  96. Rotting Oranges
  97. Minimum Number of Swaps to Make the String Balanced
  98. Lowest Common Ancestor of a Binary Tree III
  99. Text Justification
  100. Distinct Subsequences
  101. Soup Servings
  102. Reverse Integer
  103. Video Stitching
  104. Not Boring Movies
  105. Maximum Size Subarray Sum Equals k
  106. Managers with at Least 5 Direct Reports
  107. Maximum Product Subarray
  108. First Bad Version
  109. Minimum Number of Operations to Make Array Continuous
  110. Car Pooling
  111. Valid Anagram
  112. String to Integer (atoi)
  113. Find the Highest Altitude
  114. Longest String Chain
  115. First Missing Positive
  116. Max Consecutive Ones III
  117. Find in Mountain Array
  118. Find Bottom Left Tree Value
  119. Palindrome Partitioning II
  120. Decode Ways
  121. Accounts Merge
  122. Dungeon Game
  123. Build a Matrix With Conditions
  124. Reverse Vowels of a String
  125. Find the Town Judge
  126. Binary Tree Zigzag Level Order Traversal
  127. Number of 1 Bits
  128. Binary Search Tree Iterator
  129. Best Team With No Conflicts
  130. Count All Valid Pickup and Delivery Options
  131. Find Peak Element
  132. Shuffle an Array
  133. Median of Two Sorted Arrays
  134. Degree of an Array
  135. Bag of Tokens
  136. Course Schedule
  137. Sum of Total Strength of Wizards
  138. Cherry Pickup II
  139. Two Furthest Houses With Different Colors
  140. Most Frequent Subtree Sum
  141. Paint House III
  142. Partition Labels
  143. Group Anagrams
  144. Word Pattern
  145. Wildcard Matching
  146. Exclusive Time of Functions
  147. Convert Sorted Array to Binary Search Tree
  148. Shortest Path Visiting All Nodes
  149. Satisfiability of Equality Equations
  150. Data Stream as Disjoint Intervals
  151. Add Strings
  152. Longest Subarray of 1's After Deleting One Element
  153. Sort List
  154. Odd Even Linked List
  155. Basic Calculator
  156. Maximum Score from Performing Multiplication Operations
  157. Can Place Flowers
  158. Linked List Cycle II
  159. Max Points on a Line
  160. Sequential Digits
  161. Majority Element
  162. Largest Divisible Subset
  163. Design HashSet
  164. Island Perimeter
  165. Word Break II
  166. Number of Subarrays with Bounded Maximum
  167. Gray Code
  168. Partition Array Into Two Arrays to Minimize Sum Difference
  169. Integer Break
  170. 01 Matrix
  171. Kids With the Greatest Number of Candies
  172. Add Digits
  173. Design Browser History
  174. Remove All Adjacent Duplicates In String
  175. Roman to Integer
  176. Letter Combinations of a Phone Number
  177. Is Subsequence
  178. Employee Importance
  179. Number of Beautiful Integers in the Range
  180. Maximum Profit in Job Scheduling
  181. Palindrome Linked List
  182. Implement Trie (Prefix Tree)
  183. Unique Binary Search Trees
  184. Minimum Number of Moves to Make Palindrome
  185. Power of Two
  186. Clone Graph
  187. Swapping Nodes in a Linked List
  188. Palindrome Number
  189. Flatten Nested List Iterator
  190. Combination Sum II
  191. Insert Interval
  192. Serialize and Deserialize Binary Tree
  193. Validate Binary Search Tree
  194. Boats to Save People
  195. Invert Binary Tree
  196. Find the Index of the First Occurrence in a String
  197. Valid Palindrome II
  198. Complement of Base 10 Integer
  199. Sudoku Solver
  200. Prime Arrangements
  201. Maximum Depth of N-ary Tree
  202. How Many Numbers Are Smaller Than the Current Number
  203. Find Median from Data Stream
  204. Restore IP Addresses
  205. Max Consecutive Ones
  206. Largest Rectangle in Histogram
  207. Swap Nodes in Pairs
  208. Minimum Number of Removals to Make Mountain Array
  209. Reducing Dishes
  210. Sort Characters By Frequency
  211. Minimum Area Rectangle
  212. Verifying an Alien Dictionary
  213. Closest Dessert Cost
  214. Binary Tree Level Order Traversal
  215. Richest Customer Wealth
  216. Repeated Substring Pattern
  217. Top K Frequent Words
  218. Count and Say
  219. Lexicographically Smallest Equivalent String
  220. Product of the Last K Numbers
  221. Edit Distance
  222. Intersection of Two Arrays II
  223. Search in Rotated Sorted Array II
  224. Design Circular Queue
  225. Search in Rotated Sorted Array
  226. Find and Replace Pattern
  227. Counter
  228. Reshape the Matrix
  229. Minimum Height Trees
  230. Intersection of Two Arrays
  231. Kth Smallest Element in a BST
  232. Recover Binary Search Tree
  233. Maximum Length of Pair Chain
  234. Subsets
  235. Sum of Two Integers
  236. Smallest Range Covering Elements from K Lists
  237. Longest Increasing Path in a Matrix
  238. Read N Characters Given read4 II - Call Multiple Times
  239. Minimum Window Substring
  240. Valid Sudoku
  241. Power of Three
  242. Rearrange Products Table
  243. Lowest Common Ancestor of a Binary Tree
  244. Running Sum of 1d Array
  245. Symmetric Tree
  246. Climbing Stairs
  247. Regular Expression Matching
  248. Add Two Integers
  249. Cheapest Flights Within K Stops
  250. Next Greater Node In Linked List
  251. Wiggle Subsequence
  252. Design Twitter
  253. Spiral Matrix II
  254. Matrix Diagonal Sum
  255. Ransom Note
  256. Fruit Into Baskets
  257. Remove Duplicates from Sorted List II
  258. Find All Duplicates in an Array
  259. Number of Pairs of Strings With Concatenation Equal to Target
  260. Second Highest Salary
  261. Merge Strings Alternately
  262. Best Time to Buy and Sell Stock II
  263. Search a 2D Matrix II
  264. Time Based Key-Value Store
  265. Split Array into Consecutive Subsequences
  266. Number of Provinces
  267. Sum of Subarray Ranges
  268. Happy Number
  269. Smallest Even Multiple
  270. Split Array Largest Sum
  271. Single Number II
  272. Sort Colors
  273. Partition to K Equal Sum Subsets
  274. Divide Two Integers
  275. Reverse String II
  276. Uncrossed Lines
  277. Partitioning Into Minimum Number Of Deci-Binary Numbers
  278. Word Search
  279. Best Time to Buy and Sell Stock III
  280. Transpose Matrix
  281. Shortest Path in a Grid with Obstacles Elimination
  282. Longest Substring Without Repeating Characters
  283. Dot Product of Two Sparse Vectors
  284. Find Minimum in Rotated Sorted Array
  285. Check Completeness of a Binary Tree
  286. Join Two Arrays by ID
  287. Capacity To Ship Packages Within D Days
  288. N-Queens
  289. Delete Node in a Linked List
  290. Same Tree
  291. Reverse Linked List
  292. Binary Tree Paths
  293. Design Add and Search Words Data Structure
  294. Insert Delete GetRandom O(1) - Duplicates allowed
  295. Find the Celebrity
  296. Valid Phone Numbers
  297. Number of Digit One
  298. Integer to Roman
  299. Permutation in String
  300. Group the People Given the Group Size They Belong To
  301. Word Ladder
  302. Maximum Frequency Stack
  303. Backspace String Compare
  304. Kth Largest Element in an Array
  305. Basic Calculator II
  306. Rotate String
  307. The Number of Seniors and Juniors to Join the Company
  308. Employee Free Time
  309. Big Countries
  310. Maximum Units on a Truck
  311. Largest Perimeter Triangle
  312. Remove Duplicates from Sorted List
  313. Meeting Scheduler
  314. Last Stone Weight
  315. Next Permutation
  316. LFU Cache
  317. Flood Fill
  318. Min Stack
  319. Evaluate Division
  320. Perfect Squares
  321. Serialize and Deserialize N-ary Tree
  322. Word Break
  323. Maximum XOR of Two Numbers in an Array
  324. Angle Between Hands of a Clock
  325. Binary Tree Pruning
  326. Peeking Iterator
  327. Pascal's Triangle
  328. Add Two Numbers
  329. Check if Numbers Are Ascending in a Sentence
  330. Custom Sort String
  331. Koko Eating Bananas
  332. Minimum Cost to Cut a Stick
  333. Check If It Is a Straight Line
  334. Sort the People
  335. Generate Parentheses
  336. Pacific Atlantic Water Flow
  337. Minimum Number of Refueling Stops
  338. Game of Life
  339. Matchsticks to Square
  340. Contains Duplicate II
  341. Subtree of Another Tree
  342. Valid Parentheses
  343. Intersection of Two Linked Lists
  344. Remove All Occurrences of a Substring
  345. Strong Password Checker
  346. Combination Sum IV
  347. The Skyline Problem
  348. Remove One Element to Make the Array Strictly Increasing
  349. Find Duplicate File in System
  350. Swap Salary
  351. Single Number
  352. Minimum Size Subarray Sum
  353. 24 Game
  354. The Dining Philosophers
  355. Count of Smaller Numbers After Self
  356. String Compression
  357. Contains Duplicate
  358. Maximum Nesting Depth of Two Valid Parentheses Strings
  359. Meeting Rooms
  360. Concatenation of Array
  361. Sort Array by Increasing Frequency
  362. Find Lucky Integer in an Array
  363. 132 Pattern
  364. Find Customer Referee
  365. Sort an Array
  366. Single Element in a Sorted Array
  367. Simplify Path
  368. Binary Tree Preorder Traversal
  369. Number of Dice Rolls With Target Sum
  370. Maximum Value at a Given Index in a Bounded Array
  371. Subarray Sum Equals K
  372. Word Search II
  373. Kth Largest Element in a Stream
  374. Search a 2D Matrix
  375. Find if Path Exists in Graph
  376. Redundant Connection
  377. Surrounded Regions
  378. Reorder List
  379. Find Winner on a Tic Tac Toe Game
  380. Course Schedule II
  381. Reordered Power of 2
  382. Longest Common Subsequence
  383. Longest Valid Parentheses
  384. Implement Queue using Stacks
  385. Find All Anagrams in a String
  386. Greatest Common Divisor of Strings
  387. Jump Game III
  388. Min Cost to Connect All Points
  389. Range Sum of BST
  390. Decode String
  391. Reverse Pairs
  392. Balanced Binary Tree
  393. K-diff Pairs in an Array
  394. Snapshot Array
  395. Sum Root to Leaf Numbers
  396. Delete Duplicate Emails
  397. Convert Sorted List to Binary Search Tree
  398. Longest Consecutive Sequence
  399. Minimum Cost For Tickets
  400. Integer to English Words
  401. Maximum Level Sum of a Binary Tree
  402. Array Nesting
  403. Unique Binary Search Trees II
  404. Unique Number of Occurrences
  405. Battleships in a Board
  406. Valid Parenthesis String
  407. Minimum Operations to Reduce X to Zero
  408. Find Minimum in Rotated Sorted Array II
  409. Delete Operation for Two Strings
  410. Construct Binary Tree from Preorder and Inorder Traversal
  411. Maximum Average Subarray I
  412. Moving Average from Data Stream
  413. Two Sum
  414. Fair Distribution of Cookies
  415. Valid Perfect Square
  416. Coin Change II
  417. Find Good Days to Rob the Bank
  418. Unique Paths II
  419. Search Suggestions System
  420. Apply Transform Over Each Element in Array
  421. Insert Delete GetRandom O(1)
  422. Dota2 Senate
  423. UTF-8 Validation
  424. Design Search Autocomplete System
  425. Maximum Product of Three Numbers
  426. Binary Tree Inorder Traversal
  427. Smallest Rotation with Highest Score
  428. Design Tic-Tac-Toe
  429. Remove Comments
  430. Remove All Adjacent Duplicates in String II
  431. Validate IP Address
  432. Pairs of Songs With Total Durations Divisible by 60
  433. Rectangle Overlap
  434. Remove Nth Node From End of List
  435. Next Greater Element III
  436. Print FooBar Alternately
  437. Final Value of Variable After Performing Operations
  438. Largest Number
  439. Valid Palindrome
  440. Kth Missing Positive Number
  441. Department Highest Salary
  442. All Nodes Distance K in Binary Tree
  443. Snakes and Ladders
  444. Search Insert Position
  445. Combination Sum
  446. Find Pivot Index
  447. Flipping an Image
  448. Maximum Score of a Good Subarray
  449. Binary Tree Right Side View
  450. Top K Frequent Elements
  451. Triangle Judgement
  452. Remove Duplicates from Sorted Array II
  453. Spiral Matrix III
  454. N-th Tribonacci Number
  455. Implement Stack using Queues
  456. Guess Number Higher or Lower
  457. Painting the Walls
  458. House Robber
  459. Spiral Matrix
  460. Peak Index in a Mountain Array
  461. Logger Rate Limiter
  462. Longest Palindrome
  463. Rotate Array
  464. Count Complete Tree Nodes
  465. Classes More Than 5 Students
  466. Middle of the Linked List
  467. Permutations
  468. Add Binary
  469. Assign Cookies
  470. Jump Game
  471. Longest Repeating Character Replacement
  472. All Possible Full Binary Trees
  473. Frequency of the Most Frequent Element
  474. Burst Balloons
  475. Design Hit Counter
  476. Target Sum
  477. Word Ladder II
  478. Product of Array Except Self
  479. Minimum Score Triangulation of Polygon
  480. Defanging an IP Address
  481. Maximum Length of Repeated Subarray
  482. Sparse Matrix Multiplication
  483. Russian Doll Envelopes
  484. Minimum Time Visiting All Points
  485. Find the Pivot Integer
  486. Calculate Special Bonus
  487. Palindrome Pairs
  488. Alien Dictionary
  489. Optimal Account Balancing
  490. Add Two Numbers II
  491. K Closest Points to Origin
  492. Biggest Single Number
  493. Is Graph Bipartite?
  494. Scramble String
  495. Lowest Common Ancestor of a Binary Search Tree
  496. Maximum Earnings From Taxi
  497. Pascal's Triangle II
  498. Merge Sorted Array
  499. Merge Intervals
  500. Customer Who Visited but Did Not Make Any Transactions
  501. Maximal Square
  502. Isomorphic Strings
  503. Sliding Window Maximum
  504. Maximum Number of Words Found in Sentences
  505. Minimum Falling Path Sum II
  506. Pow(x, n)
  507. Zigzag Conversion
  508. Pizza With 3n Slices
  509. K Inverse Pairs Array
  510. Palindrome Partitioning
  511. Coin Change
  512. Rectangle Area
  513. Longest Substring with At Least K Repeating Characters
  514. Minimum Number of Arrows to Burst Balloons
  515. Delete and Earn
  516. Max Number of K-Sum Pairs
  517. Jump Game VI
  518. Longest Palindromic Substring
  519. Min Cost Climbing Stairs
  520. Remove Linked List Elements
  521. Asteroid Collision
  522. Number of Good Pairs
  523. Furthest Building You Can Reach
  524. 3Sum Closest
  525. Merge Two Binary Trees
  526. Plus One
  527. Merge k Sorted Lists
  528. Number of Atoms
  529. Maximal Rectangle
  530. Linked List Cycle
  531. Baseball Game
  532. Valid Number
  533. Ones and Zeroes
  534. Meeting Rooms II
  535. Finding 3-Digit Even Numbers
  536. Letter Case Permutation
  537. Substring with Concatenation of All Words
  538. Reverse String
  539. Find Common Characters
  540. Number of Good Leaf Nodes Pairs
  541. Number Complement
  542. The K Weakest Rows in a Matrix
  543. Find the Difference
  544. Remove Invalid Parentheses
  545. Triangle
  546. Count Odd Numbers in an Interval Range
  547. Maximum Rows Covered by Columns
  548. Longest Duplicate Substring
  549. Consecutive Numbers
  550. Number of Squareful Arrays
  551. Number of Steps to Reduce a Number to Zero
  552. Maximum Width of Binary Tree
  553. Stone Game IV
  554. Deepest Leaves Sum
  555. Find Target Indices After Sorting Array
  556. Rank Scores
  557. Maximum Depth of Binary Tree
  558. Flatten Binary Tree to Linked List
  559. Car Fleet
  560. Consecutive Characters
  561. Remove Duplicates from Sorted Array
  562. Reverse Bits
  563. Next Greater Element I
  564. Predict the Winner
  565. Next Greater Element II
  566. Remove Element
  567. Minimum Path Sum
  568. Swim in Rising Water
  569. Super Egg Drop
  570. Maximize Distance to Closest Person
  571. Majority Element II
  572. Reformat Date
  573. Create Hello World Function
  574. Score of Parentheses
  575. Average Time of Process per Machine
  576. Goal Parser Interpretation
  577. Find First and Last Position of Element in Sorted Array
  578. Length of Last Word
  579. Minimum Genetic Mutation
  580. Number of Distinct Islands
  581. My Calendar I
  582. Balance a Binary Search Tree
  583. Task Scheduler
  584. Missing Number
  585. Basic Calculator III
  586. Longest Palindromic Subsequence
  587. Two Sum IV - Input is a BST
  588. Design HashMap
  589. Excel Sheet Column Number
  590. Subtract the Product and Sum of Digits of an Integer
  591. Count Different Palindromic Subsequences
  592. Reverse Words in a String
  593. Count Numbers with Unique Digits
  594. Last Day Where You Can Still Cross
  595. Reverse Words in a String II
  596. Subarrays with K Different Integers
  597. Distribute Coins in Binary Tree
  598. Combine Two Tables
  599. Two Sum II - Input Array Is Sorted
  600. Binary Search
  601. Max Area of Island
  602. Rotate List
  603. Shortest Path in Binary Matrix
  604. Time Needed to Inform All Employees
  605. Unique Paths
  606. Recyclable and Low Fat Products
  607. Reorganize String
  608. Escape a Large Maze
  609. Maximal Network Rank
  610. Continuous Subarray Sum
  611. Find K Pairs with Smallest Sums
  612. Compare Version Numbers