Apple Coding Interview Questions

356 DSA problems tagged as asked in Apple coding interviews and online assessments. Below are the first 100 of 356: 100 easy, 0 medium and 0 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Apple DSA problems, easiest first

  1. Add Binary (Easy)
  2. Apple Redistribution into Boxes (Easy)
  3. Array Partition (Easy)
  4. Article Views I (Easy)
  5. Assign Cookies (Easy)
  6. Average Selling Price (Easy)
  7. Balanced Binary Tree (Easy)
  8. Best Poker Hand (Easy)
  9. Best Time to Buy and Sell Stock (Easy)
  10. Binary Search (Easy)
  11. Binary Tree Paths (Easy)
  12. Can Place Flowers (Easy)
  13. Climbing Stairs (Easy)
  14. Contains Duplicate (Easy)
  15. Contains Duplicate II (Easy)
  16. Convert Sorted Array to Binary Search Tree (Easy)
  17. Count the Number of Incremovable Subarrays I (Easy)
  18. Counting Bits (Easy)
  19. Create Hello World Function (Easy)
  20. Customer Who Visited but Did Not Make Any Transactions (Easy)
  21. Design HashMap (Easy)
  22. Diameter of Binary Tree (Easy)
  23. Distribute Money to Maximum Children (Easy)
  24. Fibonacci Number (Easy)
  25. Find All Numbers Disappeared in an Array (Easy)
  26. Find Pivot Index (Easy)
  27. Find the Index of the First Occurrence in a String (Easy)
  28. Find Winner on a Tic Tac Toe Game (Easy)
  29. First Bad Version (Easy)
  30. First Letter to Appear Twice (Easy)
  31. First Unique Character in a String (Easy)
  32. Fizz Buzz (Easy)
  33. Flood Fill (Easy)
  34. Goat Latin (Easy)
  35. Happy Number (Easy)
  36. Image Smoother (Easy)
  37. Implement Queue using Stacks (Easy)
  38. Implement Stack using Queues (Easy)
  39. Intersection of Three Sorted Arrays (Easy)
  40. Intersection of Two Arrays (Easy)
  41. Intersection of Two Linked Lists (Easy)
  42. Island Perimeter (Easy)
  43. Isomorphic Strings (Easy)
  44. Jewels and Stones (Easy)
  45. Length of Last Word (Easy)
  46. Logger Rate Limiter (Easy)
  47. Longest Common Prefix (Easy)
  48. Majority Element (Easy)
  49. Max Consecutive Ones (Easy)
  50. Maximum Depth of Binary Tree (Easy)
  51. Maximum Population Year (Easy)
  52. Maximum Product of Three Numbers (Easy)
  53. Meeting Rooms (Easy)
  54. Merge Sorted Array (Easy)
  55. Merge Strings Alternately (Easy)
  56. Merge Two Sorted Lists (Easy)
  57. Middle of the Linked List (Easy)
  58. Missing Number (Easy)
  59. Missing Ranges (Easy)
  60. Move Zeroes (Easy)
  61. Next Greater Element I (Easy)
  62. Number of 1 Bits (Easy)
  63. Number of Recent Calls (Easy)
  64. Palindrome Linked List (Easy)
  65. Palindrome Number (Easy)
  66. Palindrome Permutation (Easy)
  67. Pascal's Triangle (Easy)
  68. Path Sum (Easy)
  69. Power of Two (Easy)
  70. Ransom Note (Easy)
  71. Read N Characters Given Read4 (Easy)
  72. Remove All Adjacent Duplicates In String (Easy)
  73. Remove Duplicates from Sorted Array (Easy)
  74. Remove Element (Easy)
  75. Remove Linked List Elements (Easy)
  76. Reverse Bits (Easy)
  77. Reverse Linked List (Easy)
  78. Reverse String (Easy)
  79. Reverse Vowels of a String (Easy)
  80. Roman to Integer (Easy)
  81. Same Tree (Easy)
  82. Search in a Binary Search Tree (Easy)
  83. Search Insert Position (Easy)
  84. Shortest Word Distance (Easy)
  85. Single Number (Easy)
  86. Sort Array By Parity (Easy)
  87. Split Strings by Separator (Easy)
  88. Sqrt(x) (Easy)
  89. Squares of a Sorted Array (Easy)
  90. Summary Ranges (Easy)
  91. Symmetric Tree (Easy)
  92. Transpose Matrix (Easy)
  93. Two Sum (Easy)
  94. Valid Anagram (Easy)
  95. Valid Palindrome (Easy)
  96. Valid Palindrome II (Easy)
  97. Valid Parentheses (Easy)
  98. Valid Word Square (Easy)
  99. Verifying an Alien Dictionary (Easy)
  100. Word Pattern (Easy)

Prepare for the rest of the Apple process

Other companies