花費 54 ms
Leetcode: Generalized Abbreviation

這道題肯定是DFS/Backtracking, 但是怎么DFS不好想,跟Leetcode: Remove Invalid Parentheses的backtracking很像。 Gen ...

Fri Jan 01 09:07:00 CST 2016 0 5253
Leetcode: Campus Bikes II

Basic: Backtracking + pruning DP: refer to https://leetcode.com/problems/campus ...

Thu Oct 03 00:13:00 CST 2019 0 782
LeetCode 1088. Confusing Number II

原題鏈接在這里:https://leetcode.com/problems/confusing-number-ii/ 題目: We can rotate digits by 180 degrees ...

Sat Feb 29 21:14:00 CST 2020 0 1208
LeetCode 1087. Brace Expansion

原題鏈接在這里:https://leetcode.com/problems/brace-expansion/ 題目: A string S represents a list of words. ...

Mon Nov 04 20:54:00 CST 2019 0 480
回溯法模板

1、概念 回溯算法實際上一個類似枚舉的搜索嘗試過程,主要是在搜索嘗試過程中尋找問題的解,當發現已不滿足求解條件時,就“回溯”返回,嘗試別的路徑。 回溯法是一種選優搜索法,按選優條 ...

Sat Aug 27 09:17:00 CST 2016 0 2319
LeetCode 1066. Campus Bikes II

原題鏈接在這里:https://leetcode.com/problems/campus-bikes-ii/ 題目: On a campus represented as a 2D grid, t ...

Fri Jan 17 16:09:00 CST 2020 0 937
Line Search and Quasi-Newton Methods

Gradient Descent 機器學習中很多模型的參數估計都要用到優化算法,梯度下降是其中最簡單也用得最多的優化算法之一。梯度下降(Gradient Descent)[3]也被稱之為最快梯度(S ...

Sat Jun 21 23:28:00 CST 2014 1 2868
LeetCode 1219. Path with Maximum Gold

原題鏈接在這里:https://leetcode.com/problems/path-with-maximum-gold/ 題目: In a gold mine grid of size m * ...

Mon Nov 04 19:53:00 CST 2019 0 280

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM