├── .gitignore └── Readme.md /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | LeetCode collection. 2 | 3 | 4 | | Date | Question Numbers | :sparkles: Star !| 5 | | :--- | :--: | ---:| 6 | | 数组和动态数组||| 7 | | |73. Set Matrix Zeroes || 8 | | |48. Rotate Image || 9 | | |344. Reverse String || 10 | | |414. Third Maximum Number || 11 | | |448. Find All Numbers Disappeared in an Array || 12 | | |66. Plus One || 13 | | |238. Product of Array Except Self|| 14 | | |697. Degree of an Array || 15 | | |849. Maximize Distance to Closest Person || 16 | | |189. Rotate Array || 17 | | |Lint-39. Recover Rotated Sorted Array 三步翻转法 !!!! || 18 | | |54. Spiral Matrix || 19 | | | || 20 | | | || 21 | | | || 22 | | 递归 | || 23 | | |784. Letter Case Permutation || 24 | | |31. Next Permutation || 25 | | | || 26 | | | || 27 | | | || 28 | | | || 29 | | | || 30 | | 二分搜索 | || 31 | | |50. Pow(x, n)|| 32 | | |34. Find First and Last Position of Element in Sorted Array |1-yes | 33 | | |35. Search Insert Position |1-yes| 34 | | |658. Find K Closest Elements |1-no | 35 | | |33. Search in Rotated Sorted Array | 1-no | 36 | | |81. Search in Rotated Sorted Array II |1-no | 37 | | |153. Find Minimum in Rotated Sorted Array || 38 | | |154. Find Minimum in Rotated Sorted Array II || 39 | | |702. Search in a Sorted Array of Unknown Size 这个题定量分析 ! |1-no | 40 | | |74. Search a 2D Matrix |1-no | 41 | | |240. Search a 2D Matrix II |1-no | 42 | | |162. Find Peak Element |1-no | 43 | | |69. Sqrt(x) |1-yes | 44 | | |Lint-586. Sqrt(x) II || 45 | | |4. Median of Two Sorted Array 和下面的题是一样的|| 46 | | |Lint-931. Median of K Sorted Arrays || 47 | | |Laicode: Kth Smallest In Two Sorted Arrays 这个题非常重要!可以到 logn+logk |bilibili| 48 | | |7. Reverse Integer || 49 | | |475. Heaters || 50 | | |57. Insert Interval || 51 | | |349. Intersection of Two Arrays || 52 | | |Lint-140. Fast Power || 53 | | |378. Kth Smallest Element in a Sorted Matrix 二分中的逼近法 || 54 | | |302. Smallest Rectangle Enclosing Black Pixels 二分中的逼近法 || 55 | | |Lint-183. Wood Cut || 56 | | | || 57 | | | || 58 | | | || 59 | | | || 60 | | | || 61 | | |经验:并不是所有二分法都适用于 left+1