0% found this document useful (0 votes)
129 views11 pages

Apple-1year - LeetCode PDF

Uploaded by

rjjhjb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
129 views11 pages

Apple-1year - LeetCode PDF

Uploaded by

rjjhjb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

02/12/2019 Apple - LeetCode

 Apple

Notice
We've improved our algorithm that calculates company tags and their frequencies to be more accurate
and current.

This page updates weekly on Saturday.

You can filter the results by different time periods.

You have solved 60 / 200 problems.

Show problem tags Select time period: 1 year

  # Title Acceptance Difficulty Frequency 

 1 Two Sum (/problems/two-sum) 44.8% Easy

 2 Add Two Numbers (/problems/add-two-numbers) 32.3% Medium

146 LRU Cache (/problems/lru-cache) 28.7% Medium

97 Interleaving String (/problems/interleaving-string) 29.5% Hard

 53 Maximum Subarray (/problems/maximum- 45.1% Easy


subarray)

42 Trapping Rain Water (/problems/trapping-rain- 45.8% Hard


water)

391 Perfect Rectangle (/problems/perfect-rectangle) 29.1% Hard

4 Median of Two Sorted Arrays (/problems/median- 27.8% Hard


of-two-sorted-arrays)

381 Insert Delete GetRandom O(1) - Duplicates 33.0% Hard


allowed (/problems/insert-delete-getrandom-o1-
duplicates-allowed)

341 Flatten Nested List Iterator (/problems/flatten- 50.4% Medium


nested-list-iterator)

177 Nth Highest Salary (/problems/nth-highest-salary) 28.7% Medium

227 Basic Calculator II (/problems/basic-calculator-ii) 35.2% Medium

284 Peeking Iterator (/problems/peeking-iterator) 42.5% Medium

212 Word Search II (/problems/word-search-ii) 31.1% Hard

https://leetcode.com/company/apple/ 1/11
02/12/2019 Apple - LeetCode

  # Title Acceptance Difficulty Frequency 

 202 Happy Number (/problems/happy-number) 47.5% Easy

329 Longest Increasing Path in a Matrix 41.5% Hard


(/problems/longest-increasing-path-in-a-matrix)

428 Serialize and Deserialize N-ary Tree 56.4% Hard


(/problems/serialize-and-deserialize-n-ary-tree)

996 Number of Squareful Arrays (/problems/number- 47.3% Hard


of-squareful-arrays)

403 Frog Jump (/problems/frog-jump) 37.6% Hard

 236 Lowest Common Ancestor of a Binary Tree 41.1% Medium


(/problems/lowest-common-ancestor-of-a-binary-
tree)

 977 Squares of a Sorted Array (/problems/squares-of- 71.9% Easy


a-sorted-array)

911 Online Election (/problems/online-election) 48.7% Medium

694 Number of Distinct Islands (/problems/number-of- 53.2% Medium


distinct-islands) 

 724 Find Pivot Index (/problems/find-pivot-index) 42.3% Easy

124 Binary Tree Maximum Path Sum 31.7% Hard


(/problems/binary-tree-maximum-path-sum)

15 3Sum (/problems/3sum) 25.3% Medium

688 Knight Probability in Chessboard 46.4% Medium


(/problems/knight-probability-in-chessboard)

528 Random Pick with Weight (/problems/random- 43.3% Medium


pick-with-weight)

 21 Merge Two Sorted Lists (/problems/merge-two- 50.1% Easy


sorted-lists)

419 Battleships in a Board (/problems/battleships-in-a- 67.2% Medium


board)

233 Number of Digit One (/problems/number-of-digit- 30.8% Hard


one)

 56 Merge Intervals (/problems/merge-intervals) 37.3% Medium

54 Spiral Matrix (/problems/spiral-matrix) 32.1% Medium

 46 Permutations (/problems/permutations) 58.8% Medium

https://leetcode.com/company/apple/ 2/11
02/12/2019 Apple - LeetCode

  # Title Acceptance Difficulty Frequency 

 206 Reverse Linked List (/problems/reverse-linked-list) 58.2% Easy

49 Group Anagrams (/problems/group-anagrams) 51.0% Medium

18 4Sum (/problems/4sum) 32.0% Medium

380 Insert Delete GetRandom O(1) (/problems/insert- 44.5% Medium


delete-getrandom-o1)

351 Android Unlock Patterns (/problems/android- 47.1% Medium


unlock-patterns) 

343 Integer Break (/problems/integer-break) 48.9% Medium

193 Valid Phone Numbers (/problems/valid-phone- 25.5% Easy


numbers)

407 Trapping Rain Water II (/problems/trapping-rain- 40.3% Hard


water-ii)

739 Daily Temperatures (/problems/daily- 61.3% Medium


temperatures)

393 UTF-8 Validation (/problems/utf-8-validation) 36.6% Medium

427 Construct Quad Tree (/problems/construct-quad- 59.4% Medium


tree)

549 Binary Tree Longest Consecutive Sequence II 45.7% Medium


(/problems/binary-tree-longest-consecutive-
sequence-ii) 

1044 Longest Duplicate Substring (/problems/longest- 23.8% Hard


duplicate-substring)

12 Integer to Roman (/problems/integer-to-roman) 52.8% Medium

155 Min Stack (/problems/min-stack) 39.8% Easy

 121 Best Time to Buy and Sell Stock (/problems/best- 48.8% Easy
time-to-buy-and-sell-stock)

1095 Find in Mountain Array (/problems/find-in- 34.8% Hard


mountain-array)

17 Letter Combinations of a Phone Number 43.9% Medium


(/problems/letter-combinations-of-a-phone-
number)

5 Longest Palindromic Substring 28.4% Medium


(/problems/longest-palindromic-substring)

https://leetcode.com/company/apple/ 3/11
02/12/2019 Apple - LeetCode

  # Title Acceptance Difficulty Frequency 

238 Product of Array Except Self (/problems/product- 57.6% Medium


of-array-except-self)

 31 Next Permutation (/problems/next-permutation) 31.4% Medium

8 String to Integer (atoi) (/problems/string-to-integer- 14.9% Medium


atoi)

 387 First Unique Character in a String (/problems/first- 51.0% Easy


unique-character-in-a-string)

 136 Single Number (/problems/single-number) 62.1% Easy

 401 Binary Watch (/problems/binary-watch) 46.0% Easy

 443 String Compression (/problems/string- 39.1% Easy


compression)

 268 Missing Number (/problems/missing-number) 49.7% Easy

333 Largest BST Subtree (/problems/largest-bst- 34.4% Medium


subtree) 

 350 Intersection of Two Arrays II 49.7% Easy


(/problems/intersection-of-two-arrays-ii)

460 LFU Cache (/problems/lfu-cache) 31.4% Hard

 125 Valid Palindrome (/problems/valid-palindrome) 33.2% Easy

692 Top K Frequent Words (/problems/top-k-frequent- 48.0% Medium


words)

 75 Sort Colors (/problems/sort-colors) 43.9% Medium

251 Flatten 2D Vector (/problems/flatten-2d-vector) 44.8% Medium


 332 Reconstruct Itinerary (/problems/reconstruct- 33.4% Medium


itinerary)

 20 Valid Parentheses (/problems/valid-parentheses) 37.6% Easy

195 Tenth Line (/problems/tenth-line) 33.8% Easy

149 Max Points on a Line (/problems/max-points-on-a- 16.3% Hard


line)

412 Fizz Buzz (/problems/fizz-buzz) 60.5% Easy

311 Sparse Matrix Multiplication (/problems/sparse- 58.4% Medium


matrix-multiplication) 

https://leetcode.com/company/apple/ 4/11
02/12/2019 Apple - LeetCode

  # Title Acceptance Difficulty Frequency 

277 Find the Celebrity (/problems/find-the-celebrity) 39.1% Medium


609 Find Duplicate File in System (/problems/find- 57.3% Medium


duplicate-file-in-system)

223 Rectangle Area (/problems/rectangle-area) 36.7% Medium

120 Triangle (/problems/triangle) 41.5% Medium

 394 Decode String (/problems/decode-string) 47.3% Medium

545 Boundary of Binary Tree (/problems/boundary-of- 37.1% Medium


binary-tree) 

384 Shuffle an Array (/problems/shuffle-an-array) 51.3% Medium

 7 Reverse Integer (/problems/reverse-integer) 25.6% Easy

435 Non-overlapping Intervals (/problems/non- 41.9% Medium


overlapping-intervals)

 77 Combinations (/problems/combinations) 50.9% Medium

295 Find Median from Data Stream (/problems/find- 39.9% Hard


median-from-data-stream)

127 Word Ladder (/problems/word-ladder) 26.6% Medium

530 Minimum Absolute Difference in BST 51.8% Easy


(/problems/minimum-absolute-difference-in-bst)

 771 Jewels and Stones (/problems/jewels-and-stones) 84.1% Easy

79 Word Search (/problems/word-search) 33.0% Medium

23 Merge k Sorted Lists (/problems/merge-k-sorted- 37.1% Hard


lists)

16 3Sum Closest (/problems/3sum-closest) 45.7% Medium

91 Decode Ways (/problems/decode-ways) 23.3% Medium

515 Find Largest Value in Each Tree Row 58.9% Medium


(/problems/find-largest-value-in-each-tree-row)

1011 Capacity To Ship Packages Within D Days 55.8% Medium


(/problems/capacity-to-ship-packages-within-d-
days)

175 Combine Two Tables (/problems/combine-two- 55.8% Easy


tables)

https://leetcode.com/company/apple/ 5/11
02/12/2019 Apple - LeetCode

  # Title Acceptance Difficulty Frequency 

57 Insert Interval (/problems/insert-interval) 32.2% Hard

6 ZigZag Conversion (/problems/zigzag-conversion) 34.0% Medium

 344 Reverse String (/problems/reverse-string) 64.8% Easy

733 Flood Fill (/problems/flood-fill) 52.4% Easy

64 Minimum Path Sum (/problems/minimum-path- 49.6% Medium


sum)

242 Valid Anagram (/problems/valid-anagram) 54.3% Easy

338 Counting Bits (/problems/counting-bits) 66.1% Medium

 349 Intersection of Two Arrays (/problems/intersection- 58.1% Easy


of-two-arrays)

658 Find K Closest Elements (/problems/find-k- 39.2% Medium


closest-elements)

11 Container With Most Water (/problems/container- 47.8% Medium


with-most-water)

 973 K Closest Points to Origin (/problems/k-closest- 61.4% Medium


points-to-origin)

 88 Merge Sorted Array (/problems/merge-sorted- 37.5% Easy


array)

 22 Generate Parentheses (/problems/generate- 58.3% Medium


parentheses)

362 Design Hit Counter (/problems/design-hit-counter) 61.2% Medium


282 Expression Add Operators (/problems/expression- 34.2% Hard


add-operators)

279 Perfect Squares (/problems/perfect-squares) 43.5% Medium

540 Single Element in a Sorted Array 57.6% Medium


(/problems/single-element-in-a-sorted-array)

 543 Diameter of Binary Tree (/problems/diameter-of- 47.9% Easy


binary-tree)

3 Longest Substring Without Repeating Characters 29.2% Medium


(/problems/longest-substring-without-repeating-
characters)

https://leetcode.com/company/apple/ 6/11
02/12/2019 Apple - LeetCode

  # Title Acceptance Difficulty Frequency 

 448 Find All Numbers Disappeared in an Array 54.6% Easy


(/problems/find-all-numbers-disappeared-in-an-
array) 

140 Word Break II (/problems/word-break-ii) 28.9% Hard

804 Unique Morse Code Words (/problems/unique- 75.6% Easy


morse-code-words)

560 Subarray Sum Equals K (/problems/subarray- 43.2% Medium


sum-equals-k)

48 Rotate Image (/problems/rotate-image) 51.9% Medium

229 Majority Element II (/problems/majority-element-ii) 33.6% Medium

43 Multiply Strings (/problems/multiply-strings) 32.1% Medium

33 Search in Rotated Sorted Array 33.4% Medium


(/problems/search-in-rotated-sorted-array)

 169 Majority Element (/problems/majority-element) 55.0% Easy

258 Add Digits (/problems/add-digits) 55.2% Easy

309 Best Time to Buy and Sell Stock with Cooldown 45.2% Medium
(/problems/best-time-to-buy-and-sell-stock-with-
cooldown)

1038 Binary Search Tree to Greater Sum Tree 78.4% Medium


(/problems/binary-search-tree-to-greater-sum-
tree)

 709 To Lower Case (/problems/to-lower-case) 78.1% Easy

30 Substring with Concatenation of All Words 24.4% Hard


(/problems/substring-with-concatenation-of-all-
words)

961 N-Repeated Element in Size 2N Array 72.7% Easy


(/problems/n-repeated-element-in-size-2n-array)

76 Minimum Window Substring (/problems/minimum- 32.6% Hard


window-substring)

73 Set Matrix Zeroes (/problems/set-matrix-zeroes) 41.4% Medium

642 Design Search Autocomplete System 41.4% Hard


(/problems/design-search-autocomplete-system)

https://leetcode.com/company/apple/ 7/11
02/12/2019 Apple - LeetCode

  # Title Acceptance Difficulty Frequency 

34 Find First and Last Position of Element in Sorted 34.6% Medium


Array (/problems/find-first-and-last-position-of-
element-in-sorted-array)

 122 Best Time to Buy and Sell Stock II 53.7% Easy


(/problems/best-time-to-buy-and-sell-stock-ii)

133 Clone Graph (/problems/clone-graph) 30.0% Medium

912 Sort an Array (/problems/sort-an-array) 62.8% Medium

304 Range Sum Query 2D - Immutable 35.2% Medium


(/problems/range-sum-query-2d-immutable)

 141 Linked List Cycle (/problems/linked-list-cycle) 38.8% Easy

322 Coin Change (/problems/coin-change) 32.7% Medium

 139 Word Break (/problems/word-break) 37.4% Medium

105 Construct Binary Tree from Preorder and Inorder 44.4% Medium
Traversal (/problems/construct-binary-tree-from-
preorder-and-inorder-traversal)

463 Island Perimeter (/problems/island-perimeter) 62.2% Easy

10 Regular Expression Matching (/problems/regular- 25.9% Hard


expression-matching)

348 Design Tic-Tac-Toe (/problems/design-tic-tac-toe) 51.9% Medium


191 Number of 1 Bits (/problems/number-of-1-bits) 45.8% Easy

200 Number of Islands (/problems/number-of-islands) 43.8% Medium

 706 Design HashMap (/problems/design-hashmap) 58.0% Easy

509 Fibonacci Number (/problems/fibonacci-number) 66.6% Easy

 101 Symmetric Tree (/problems/symmetric-tree) 45.0% Easy

 39 Combination Sum (/problems/combination-sum) 52.0% Medium

 67 Add Binary (/problems/add-binary) 41.4% Easy

378 Kth Smallest Element in a Sorted Matrix 51.4% Medium


(/problems/kth-smallest-element-in-a-sorted-
matrix)

561 Array Partition I (/problems/array-partition-i) 70.4% Easy

https://leetcode.com/company/apple/ 8/11
02/12/2019 Apple - LeetCode

  # Title Acceptance Difficulty Frequency 

273 Integer to English Words (/problems/integer-to- 25.4% Hard


english-words)

297 Serialize and Deserialize Binary Tree 43.9% Hard


(/problems/serialize-and-deserialize-binary-tree)

 234 Palindrome Linked List (/problems/palindrome- 37.4% Easy


linked-list)

 167 Two Sum II - Input array is sorted (/problems/two- 51.9% Easy


sum-ii-input-array-is-sorted)

 231 Power of Two (/problems/power-of-two) 42.6% Easy

 326 Power of Three (/problems/power-of-three) 41.9% Easy

 986 Interval List Intersections (/problems/interval-list- 64.6% Medium


intersections)

253 Meeting Rooms II (/problems/meeting-rooms-ii) 44.2% Medium


232 Implement Queue using Stacks 45.9% Easy


(/problems/implement-queue-using-stacks)

 207 Course Schedule (/problems/course-schedule) 40.1% Medium

 100 Same Tree (/problems/same-tree) 51.3% Easy

40 Combination Sum II (/problems/combination-sum- 44.5% Medium


ii)

269 Alien Dictionary (/problems/alien-dictionary)  33.3% Hard

72 Edit Distance (/problems/edit-distance) 40.3% Hard

96 Unique Binary Search Trees (/problems/unique- 48.7% Medium


binary-search-trees)

621 Task Scheduler (/problems/task-scheduler) 47.0% Medium

25 Reverse Nodes in k-Group (/problems/reverse- 38.7% Hard


nodes-in-k-group)

 78 Subsets (/problems/subsets) 56.5% Medium

215 Kth Largest Element in an Array (/problems/kth- 51.1% Medium


largest-element-in-an-array)

 203 Remove Linked List Elements (/problems/remove- 36.7% Easy


linked-list-elements)

63 Unique Paths II (/problems/unique-paths-ii) 33.8% Medium

https://leetcode.com/company/apple/ 9/11
02/12/2019 Apple - LeetCode

  # Title Acceptance Difficulty Frequency 

173 Binary Search Tree Iterator (/problems/binary- 51.9% Medium


search-tree-iterator)

204 Count Primes (/problems/count-primes) 30.2% Easy

209 Minimum Size Subarray Sum 36.1% Medium


(/problems/minimum-size-subarray-sum)

 1108 Defanging an IP Address (/problems/defanging- 85.0% Easy


an-ip-address)

19 Remove Nth Node From End of List 34.6% Medium


(/problems/remove-nth-node-from-end-of-list)

38 Count and Say (/problems/count-and-say) 42.3% Easy

116 Populating Next Right Pointers in Each Node 40.5% Medium


(/problems/populating-next-right-pointers-in-each-
node)

41 First Missing Positive (/problems/first-missing- 30.3% Hard


positive)

36 Valid Sudoku (/problems/valid-sudoku) 45.7% Medium

29 Divide Two Integers (/problems/divide-two- 16.2% Medium


integers)

 70 Climbing Stairs (/problems/climbing-stairs) 45.6% Easy

938 Range Sum of BST (/problems/range-sum-of-bst) 78.6% Easy

937 Reorder Data in Log Files (/problems/reorder- 53.9% Easy


data-in-log-files)

 98 Validate Binary Search Tree (/problems/validate- 26.7% Medium


binary-search-tree)

 50 Pow(x, n) (/problems/powx-n) 28.8% Medium

112 Path Sum (/problems/path-sum) 39.3% Easy

62 Unique Paths (/problems/unique-paths) 50.2% Medium

24 Swap Nodes in Pairs (/problems/swap-nodes-in- 47.3% Medium


pairs)

347 Top K Frequent Elements (/problems/top-k- 57.7% Medium


frequent-elements)

138 Copy List with Random Pointer (/problems/copy- 30.7% Medium


list-with-random-pointer)

https://leetcode.com/company/apple/ 10/11
02/12/2019 Apple - LeetCode

  # Title Acceptance Difficulty Frequency 

 198 House Robber (/problems/house-robber)  41.5% Easy

 28 Implement strStr() (/problems/implement-strstr) 33.3% Easy

 283 Move Zeroes (/problems/move-zeroes) 55.7% Easy

14 Longest Common Prefix (/problems/longest- 34.4% Easy


common-prefix)

 104 Maximum Depth of Binary Tree 63.0% Easy


(/problems/maximum-depth-of-binary-tree)

 26 Remove Duplicates from Sorted Array 42.6% Easy


(/problems/remove-duplicates-from-sorted-array)

Copyright © 2019 LeetCode


Help Center (/support/)  |  Terms (/terms/)  |  Privacy Policy (/privacy/)
United States (/region/)

https://leetcode.com/company/apple/ 11/11

You might also like