在刷題的過程中,不只是題目有解完就好了,因為在面試時還需要將整個解題過程的想法和面試官做討論,所以在這次的挑戰中,我會用口說講解的方式分享超過 30+ 個 LeetCode 題目的解法。
解題程式碼 var kSmallestPairs = function (nums1, nums2, k) { const res = []; cons...
解題程式碼 var SmallestInfiniteSet = function () { this.minHeap = new MinPriorityQu...
解題程式碼 var maxScore = function (nums1, nums2, k) { let max = 0; let sum = 0;...
解題程式碼 Trie var suggestedProducts = function (products, searchWord) { products....
解題程式碼 var subsetsWithDup = function (nums) { const result = [[]]; const subs...
解題程式碼 const isPalindrome = (s) => s === s.split('').reverse().join(''); var...
解題程式碼 var isNStraightHand = function (hand, groupSize) { const handMap = new M...
解題程式碼 var checkValidString = function (s) { let leftMin = 0; let leftMax = 0...
var searchMatrix = function (matrix, target) { let row = 0; let col = matrix...
解題程式碼 var DetectSquares = function () { this.points = new Map(); }; /** * @p...