Delete Node in a BST Graphs - DFS Keys and Rooms Number of Provinces Reorder Routes to Make All Paths Lead to the City Zero Evaluate Division Graphs - BFS Nearest Exit from Entrance in Maze Rotting Oranges Heap/
0024-Swap-Nodes-in-Pairs 0025-Reverse-Nodes-in-k-Group 0026-Remove-Duplicates-from-Sorted-Array 0027-Remove-Element 0028-Implement-strStr 0033-Search-in-Rotated-Sorted-Array 0034-Search-for-a-Range 0036-Valid-Sudoku 0037-Sudoku-Solver 0038-Count-and-Say 0039-Combination-Sum 0040-Combin...
/* * @lc app=leetcode.cn id=122 lang=javascript * * [122] 买卖股票的最佳时机 II */ // @lc code=start /** * @param {number[]} prices * @return {number} */ var maxProfit = function(prices) { let profit_in = -prices[0], profit_out = 0, n = prices.length; for(let i ...
findPeakElement.js add some sorting and searching solutions Jun 18, 2018 firstBadVersion.js check in some solutions Jun 24, 2018 firstUniqueCharacterInAString.js array and string solutions Jun 23, 2018 fizzBuzz.js check in some solutions Jun 24, 2018 generateParenthesis.js generate parenthesis Jun...