# Apple Coding Interview Questions

> 356 DSA problems asked in Apple coding interviews and online assessments, sorted easiest first with hints. Free practice for placements on InternHack.

Canonical: https://www.internhack.in/learn/dsa/companies/apple
Last updated: 2026-11-28

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](https://www.internhack.in/learn/dsa/problem/add-binary) (Easy)
2. [Apple Redistribution into Boxes](https://www.internhack.in/learn/dsa/problem/apple-redistribution-into-boxes) (Easy)
3. [Array Partition](https://www.internhack.in/learn/dsa/problem/array-partition) (Easy)
4. [Article Views I](https://www.internhack.in/learn/dsa/problem/article-views-i) (Easy)
5. [Assign Cookies](https://www.internhack.in/learn/dsa/problem/assign-cookies) (Easy)
6. [Average Selling Price](https://www.internhack.in/learn/dsa/problem/average-selling-price) (Easy)
7. [Balanced Binary Tree](https://www.internhack.in/learn/dsa/problem/balanced-binary-tree) (Easy)
8. [Best Poker Hand](https://www.internhack.in/learn/dsa/problem/best-poker-hand) (Easy)
9. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
10. [Binary Search](https://www.internhack.in/learn/dsa/problem/binary-search) (Easy)
11. [Binary Tree Paths](https://www.internhack.in/learn/dsa/problem/binary-tree-paths) (Easy)
12. [Can Place Flowers](https://www.internhack.in/learn/dsa/problem/can-place-flowers) (Easy)
13. [Climbing Stairs](https://www.internhack.in/learn/dsa/problem/climbing-stairs) (Easy)
14. [Contains Duplicate](https://www.internhack.in/learn/dsa/problem/contains-duplicate) (Easy)
15. [Contains Duplicate II](https://www.internhack.in/learn/dsa/problem/contains-duplicate-ii) (Easy)
16. [Convert Sorted Array to Binary Search Tree](https://www.internhack.in/learn/dsa/problem/convert-sorted-array-to-binary-search-tree) (Easy)
17. [Count the Number of Incremovable Subarrays I](https://www.internhack.in/learn/dsa/problem/count-the-number-of-incremovable-subarrays-i) (Easy)
18. [Counting Bits](https://www.internhack.in/learn/dsa/problem/counting-bits) (Easy)
19. [Create Hello World Function](https://www.internhack.in/learn/dsa/problem/create-hello-world-function) (Easy)
20. [Customer Who Visited but Did Not Make Any Transactions](https://www.internhack.in/learn/dsa/problem/customer-who-visited-but-did-not-make-any-transactions) (Easy)
21. [Design HashMap](https://www.internhack.in/learn/dsa/problem/design-hashmap) (Easy)
22. [Diameter of Binary Tree](https://www.internhack.in/learn/dsa/problem/diameter-of-binary-tree) (Easy)
23. [Distribute Money to Maximum Children](https://www.internhack.in/learn/dsa/problem/distribute-money-to-maximum-children) (Easy)
24. [Fibonacci Number](https://www.internhack.in/learn/dsa/problem/fibonacci-number) (Easy)
25. [Find All Numbers Disappeared in an Array](https://www.internhack.in/learn/dsa/problem/find-all-numbers-disappeared-in-an-array) (Easy)
26. [Find Pivot Index](https://www.internhack.in/learn/dsa/problem/find-pivot-index) (Easy)
27. [Find the Index of the First Occurrence in a String](https://www.internhack.in/learn/dsa/problem/find-the-index-of-the-first-occurrence-in-a-string) (Easy)
28. [Find Winner on a Tic Tac Toe Game](https://www.internhack.in/learn/dsa/problem/find-winner-on-a-tic-tac-toe-game) (Easy)
29. [First Bad Version](https://www.internhack.in/learn/dsa/problem/first-bad-version) (Easy)
30. [First Letter to Appear Twice](https://www.internhack.in/learn/dsa/problem/first-letter-to-appear-twice) (Easy)
31. [First Unique Character in a String](https://www.internhack.in/learn/dsa/problem/first-unique-character-in-a-string) (Easy)
32. [Fizz Buzz](https://www.internhack.in/learn/dsa/problem/fizz-buzz) (Easy)
33. [Flood Fill](https://www.internhack.in/learn/dsa/problem/flood-fill) (Easy)
34. [Goat Latin](https://www.internhack.in/learn/dsa/problem/goat-latin) (Easy)
35. [Happy Number](https://www.internhack.in/learn/dsa/problem/happy-number) (Easy)
36. [Image Smoother](https://www.internhack.in/learn/dsa/problem/image-smoother) (Easy)
37. [Implement Queue using Stacks](https://www.internhack.in/learn/dsa/problem/implement-queue-using-stacks) (Easy)
38. [Implement Stack using Queues](https://www.internhack.in/learn/dsa/problem/implement-stack-using-queues) (Easy)
39. [Intersection of Three Sorted Arrays](https://www.internhack.in/learn/dsa/problem/intersection-of-three-sorted-arrays) (Easy)
40. [Intersection of Two Arrays](https://www.internhack.in/learn/dsa/problem/intersection-of-two-arrays) (Easy)
41. [Intersection of Two Linked Lists](https://www.internhack.in/learn/dsa/problem/intersection-of-two-linked-lists) (Easy)
42. [Island Perimeter](https://www.internhack.in/learn/dsa/problem/island-perimeter) (Easy)
43. [Isomorphic Strings](https://www.internhack.in/learn/dsa/problem/isomorphic-strings) (Easy)
44. [Jewels and Stones](https://www.internhack.in/learn/dsa/problem/jewels-and-stones) (Easy)
45. [Length of Last Word](https://www.internhack.in/learn/dsa/problem/length-of-last-word) (Easy)
46. [Logger Rate Limiter](https://www.internhack.in/learn/dsa/problem/logger-rate-limiter) (Easy)
47. [Longest Common Prefix](https://www.internhack.in/learn/dsa/problem/longest-common-prefix) (Easy)
48. [Majority Element](https://www.internhack.in/learn/dsa/problem/majority-element) (Easy)
49. [Max Consecutive Ones](https://www.internhack.in/learn/dsa/problem/max-consecutive-ones) (Easy)
50. [Maximum Depth of Binary Tree](https://www.internhack.in/learn/dsa/problem/maximum-depth-of-binary-tree) (Easy)
51. [Maximum Population Year](https://www.internhack.in/learn/dsa/problem/maximum-population-year) (Easy)
52. [Maximum Product of Three Numbers](https://www.internhack.in/learn/dsa/problem/maximum-product-of-three-numbers) (Easy)
53. [Meeting Rooms](https://www.internhack.in/learn/dsa/problem/meeting-rooms) (Easy)
54. [Merge Sorted Array](https://www.internhack.in/learn/dsa/problem/merge-sorted-array) (Easy)
55. [Merge Strings Alternately](https://www.internhack.in/learn/dsa/problem/merge-strings-alternately) (Easy)
56. [Merge Two Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-two-sorted-lists) (Easy)
57. [Middle of the Linked List](https://www.internhack.in/learn/dsa/problem/middle-of-the-linked-list) (Easy)
58. [Missing Number](https://www.internhack.in/learn/dsa/problem/missing-number) (Easy)
59. [Missing Ranges](https://www.internhack.in/learn/dsa/problem/missing-ranges) (Easy)
60. [Move Zeroes](https://www.internhack.in/learn/dsa/problem/move-zeroes) (Easy)
61. [Next Greater Element I](https://www.internhack.in/learn/dsa/problem/next-greater-element-i) (Easy)
62. [Number of 1 Bits](https://www.internhack.in/learn/dsa/problem/number-of-1-bits) (Easy)
63. [Number of Recent Calls](https://www.internhack.in/learn/dsa/problem/number-of-recent-calls) (Easy)
64. [Palindrome Linked List](https://www.internhack.in/learn/dsa/problem/palindrome-linked-list) (Easy)
65. [Palindrome Number](https://www.internhack.in/learn/dsa/problem/palindrome-number) (Easy)
66. [Palindrome Permutation](https://www.internhack.in/learn/dsa/problem/palindrome-permutation) (Easy)
67. [Pascal's Triangle](https://www.internhack.in/learn/dsa/problem/pascals-triangle) (Easy)
68. [Path Sum](https://www.internhack.in/learn/dsa/problem/path-sum) (Easy)
69. [Power of Two](https://www.internhack.in/learn/dsa/problem/power-of-two) (Easy)
70. [Ransom Note](https://www.internhack.in/learn/dsa/problem/ransom-note) (Easy)
71. [Read N Characters Given Read4](https://www.internhack.in/learn/dsa/problem/read-n-characters-given-read4) (Easy)
72. [Remove All Adjacent Duplicates In String](https://www.internhack.in/learn/dsa/problem/remove-all-adjacent-duplicates-in-string) (Easy)
73. [Remove Duplicates from Sorted Array](https://www.internhack.in/learn/dsa/problem/remove-duplicates-from-sorted-array) (Easy)
74. [Remove Element](https://www.internhack.in/learn/dsa/problem/remove-element) (Easy)
75. [Remove Linked List Elements](https://www.internhack.in/learn/dsa/problem/remove-linked-list-elements) (Easy)
76. [Reverse Bits](https://www.internhack.in/learn/dsa/problem/reverse-bits) (Easy)
77. [Reverse Linked List](https://www.internhack.in/learn/dsa/problem/reverse-linked-list) (Easy)
78. [Reverse String](https://www.internhack.in/learn/dsa/problem/reverse-string) (Easy)
79. [Reverse Vowels of a String](https://www.internhack.in/learn/dsa/problem/reverse-vowels-of-a-string) (Easy)
80. [Roman to Integer](https://www.internhack.in/learn/dsa/problem/roman-to-integer) (Easy)
81. [Same Tree](https://www.internhack.in/learn/dsa/problem/same-tree) (Easy)
82. [Search in a Binary Search Tree](https://www.internhack.in/learn/dsa/problem/search-in-a-binary-search-tree) (Easy)
83. [Search Insert Position](https://www.internhack.in/learn/dsa/problem/search-insert-position) (Easy)
84. [Shortest Word Distance](https://www.internhack.in/learn/dsa/problem/shortest-word-distance) (Easy)
85. [Single Number](https://www.internhack.in/learn/dsa/problem/single-number) (Easy)
86. [Sort Array By Parity](https://www.internhack.in/learn/dsa/problem/sort-array-by-parity) (Easy)
87. [Split Strings by Separator](https://www.internhack.in/learn/dsa/problem/split-strings-by-separator) (Easy)
88. [Sqrt(x)](https://www.internhack.in/learn/dsa/problem/sqrtx) (Easy)
89. [Squares of a Sorted Array](https://www.internhack.in/learn/dsa/problem/squares-of-a-sorted-array) (Easy)
90. [Summary Ranges](https://www.internhack.in/learn/dsa/problem/summary-ranges) (Easy)
91. [Symmetric Tree](https://www.internhack.in/learn/dsa/problem/symmetric-tree) (Easy)
92. [Transpose Matrix](https://www.internhack.in/learn/dsa/problem/transpose-matrix) (Easy)
93. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
94. [Valid Anagram](https://www.internhack.in/learn/dsa/problem/valid-anagram) (Easy)
95. [Valid Palindrome](https://www.internhack.in/learn/dsa/problem/valid-palindrome) (Easy)
96. [Valid Palindrome II](https://www.internhack.in/learn/dsa/problem/valid-palindrome-ii) (Easy)
97. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
98. [Valid Word Square](https://www.internhack.in/learn/dsa/problem/valid-word-square) (Easy)
99. [Verifying an Alien Dictionary](https://www.internhack.in/learn/dsa/problem/verifying-an-alien-dictionary) (Easy)
100. [Word Pattern](https://www.internhack.in/learn/dsa/problem/word-pattern) (Easy)

## Prepare for the rest of the Apple process

- [Aptitude questions by company](https://www.internhack.in/learn/aptitude/companies)
- [Technical interview questions](https://www.internhack.in/learn/interview)
- [Free ATS resume check](https://www.internhack.in/ats-score/try), no signup

## Other companies

- [Google](https://www.internhack.in/learn/dsa/companies/google) (2217)
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon) (1938)
- [Meta](https://www.internhack.in/learn/dsa/companies/meta) (1387)
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft) (1352)
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg) (1173)
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok) (383)
- [Uber](https://www.internhack.in/learn/dsa/companies/uber) (381)
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle) (340)
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs) (270)
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe) (227)
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs) (217)
- [Salesforce](https://www.internhack.in/learn/dsa/companies/salesforce) (189)
- [Linkedin](https://www.internhack.in/learn/dsa/companies/linkedin) (180)
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho) (179)
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm) (170)
- [Infosys](https://www.internhack.in/learn/dsa/companies/infosys) (158)
- [Walmart Labs](https://www.internhack.in/learn/dsa/companies/walmart-labs) (152)
- [Accenture](https://www.internhack.in/learn/dsa/companies/accenture) (144)
- [Nvidia](https://www.internhack.in/learn/dsa/companies/nvidia) (137)
- [Yandex](https://www.internhack.in/learn/dsa/companies/yandex) (134)
- [DE Shaw](https://www.internhack.in/learn/dsa/companies/de-shaw) (124)
- [Visa](https://www.internhack.in/learn/dsa/companies/visa) (124)
- [Flipkart](https://www.internhack.in/learn/dsa/companies/flipkart) (117)
- [Paypal](https://www.internhack.in/learn/dsa/companies/paypal) (106)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA by company](https://www.internhack.in/learn/dsa/companies)
