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...
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/Priority Queue Kth Largest Element in an Array ...
Programming interview questions generally come in three different forms: practical coding tests, questions about technical concepts, and general questions about your experience. To ace a coding interview, prepare carefully for each section: practice problems, review concepts, and use theSTAR methodto shap...
/* * @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 ...