Amazon 2017-04
因为时间的关系,没有另外写开,只把link放这里了,最后还加了点面经题
亚麻的特点:bq是重点难点,principlal得全有例子。算法方面一定有hashmap,听说heap也考,纯linkedlist好像不多见。然后DP不考的感觉。图呀树呀DFS要各有一点。
Culture : https://www.amazon.jobs/en/principles
297 Serialize and Deserialize Binary Tree
138 Copy List with Random Pointer
236 Lowest Common Ancestor of a Binary Tree
438 Find All Anagrams in a String
238 Product of Array Except Self
5 Longest Palindromic Substring
121 Best Time to Buy and Sell Stock
380 Insert Delete GetRandom O(1)
17 Letter Combinations of a Phone Number
387 First Unique Character in a String
235 Lowest Common Ancestor of a Binary Search Tree
160 Intersection of Two Linked Lists
215 Kth Largest Element in an Array
98 Validate Binary Search Tree
3 Longest Substring Without Repeating Characters
167 Two Sum II - Input array is sorted
449 Serialize and Deserialize BST
186 Reverse Words in a String II
102 Binary Tree Level Order Traversal
199 Binary Tree Right Side View
538 Convert BST to Greater Tree
451 Sort Characters By Frequency
459 Repeated Substring Pattern
536 Construct Binary Tree from String
534 Design TinyURL
516 Longest Palindromic Subsequence
373 Find K Pairs with Smallest Sums
93 Restore IP Addresses
54 Spiral Matrix(L374)
59 Spiral Matrix II(L381)
140 Word Break II(L582)
116 Populating Next Right Pointers in Each Node
117 Populating Next Right Pointers in Each Node II
230 Kth Smallest Element in a BST
403 Frog Jump(L622)
L477 Surrounded Regions - 也可以用union find来做&DFS (130)
207 Course Schedule(L615)
210 Course Schedule II(L616)
L16. Permutations II(去重)(47)
44 Wildcard matching(L192)
12 Integer to Roman
273 Number to English Word -- cc189
223 Rectangle Area
70 Climbing Stairs-- fibonacci
L272 Climbing Stairs II-- fibonacci
subarry sum ?
56 Merge Intervals(L165)
43 Multiply Strings
L428 Pow(x, n)(50)
L378 Convert Binary Search Tree to Doubly Linked List
L586 Sqrt(x) II--- 牛顿法
L141 Sqrt(x) -- 2分
wiggle sort I, II
L398 Longest Increasing Subsequence II-- memorization
150 Evaluate Reverse Polish Notation(L424)
165 Compare Version Numbers
101 Symmetric Tree(L468)
103 Binary Tree Zigzag Level Order Traversal(L71) --L185 Matrix Zigzag Traversal
L62.Search in Rotated Sorted Array(81)
31 Next Permutation
Last updated