- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 6 Binary tree
144. Binary Tree Preorder Traversal145. Binary Tree Postorder TraversalPre, In, Post Iteratively SummarizationIn preorder, the order should be: root -> left -> rightBut when we use stack, the order should be reversed: right -> left -> rootPreIn i
2022-06-16 12:35:55 72
原创 5 Substring & Sliding WIndow
76. Minimum Window Substring30. Substring with Concatenation of All Words 395. Longest Substring with At Least K Repeating Characters209. Minimum Size Subarray Sum
2022-06-16 11:55:17 73
原创 4 Sliding Window
228. Summary Ranges 475. Heaters481. Magical String 565. Array Nesting 424. Longest Repeating Character Replacement 239. Sliding Window Maximum
2022-06-14 13:24:02 63
原创 3 双指针
26. Remove Duplicates from Sorted Array27. Remove Element80. Remove Duplicates from Sorted Array II11. Container With Most Water16. 3Sum Closest42. Trapping Rain Water
2022-06-05 13:27:05 59
原创 1 二分查找(b)
33. Search in Rotated Sorted Array81. Search in Rotated Sorted Array II 153. Find Minimum in Rotated Sorted Array154. Find Minimum in Rotated Sorted Array II
2022-06-03 05:22:54 52
原创 2 二维数组
419. Battleships in a Board74. Search a 2D Matrix240. Search a 2D Matrix II 378. Kth Smallest Element in a Sorted Matrix
2022-06-03 03:22:44 43
原创 1 二分查找(a)
35. Search Insert Position(easy)34. Find First and Last Position of Element in Sorted Array374. Guess Number Higher or Lower278. First Bad Version162. Find Peak Element167. Two Sum II - Input Array Is Sorted
2022-06-02 11:51:18 75
原创 练习code1
217:class Solution { public boolean containsDuplicate(int[] nums) { HashSet<Integer> set = new HashSet<>(); for (int i = 0; i < nums.length; i++) { if (!set.add(nums[i])) { return true; ...
2021-05-16 13:47:27 140
coding 面试注意事项
2022-06-08
Leetcode 频率及 companies
2022-06-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人