花费 30 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