Leetcode高頻題解題紀錄
本文將針對Leetcode高頻出現的題目進行解釋以及解題過程,如果準備好這些題目,就足夠應對所有公司的面試了,前提是要每題都用心地去了解它的過程及作法,希望對準備刷題面試的你有所幫助~
3. Longest Substring Without Repeating Characters
4. Median of Two Sorted Arrays
5. Longest Palindromic Substring
17. Letter Combinations of a Phone Number
19. Remove Nth Node From End of List
26. Remove Duplicates from Sorted Array
28. Find the Index of the First Occurrence in a String
33. Search in Rotated Sorted Array
34. Find First and Last Position of Element in Sorted Array
84. Largest Rectangle in Histogram
94. Binary Tree Inorder Traversal
95.Unique Binary Search Trees II
96. Unique Binary Search Trees
98. Validate Binary Search Tree
102. binary tree level order traversal
104. Maximum Depth of Binary Tree
105. Construct Binary Tree from Preorder and Inorder Traversal
114. Flatten Binary Tree to Linked List
121. Best Time to Buy and Sell Stock
122. Best Time to Buy and Sell Stock II
124. Binary Tree Maximum Path Sum
160. Intersection of Two Linked Lists
215. Kth Largest Element in an Array
236. Lowest Common Ancestor of a Binary Tree
238. Product of Array Except Self
287. Find the Duplicate Number
300. Longest Increasing Subsequence