-
# 分治
一种特殊的/复杂的递归
> 如何处理
- 最近重复性「分治/回溯」
- 最优重复性「动态规划」
> 分治
1. 解决大问题,寻找重复性,并拆解成若干可重复性的子问题
- 如阶乘、爬楼梯等
![image](http://note.youdao.com/yws/res/4772/9B7C5BD8F78B4184B9CF3482B9FE6D43)
==考虑…
-
We get many (perfectly reasonable) requests for new commands (here's one: #1264). However, in my view, we already have _too many commands_. We need a way of taming the command zoo.
Here's one idea:…
-
## Problem
Parsing text is an extremely common task, and therefore it would be very nice to have a convenient syntax for creating little parsers from a grammar.
## Rant
The traditional thing that pr…
-
**Informations:**
- Joiners: Trung Vu, Son Tran, Manh Nguyen, Long Tran, Khanh Tran
- Location: Meguro, Japan
- Time: 2019/04/30
**Contents:**
+ Arrays/Strings
+ Trees
+ Prefix Sums
+ Backtr…
-
## 知识点总结
### 第六课 树、二叉树、二叉搜索树
前序知识:链表等一维结构
【总结】Linked List 是特殊化的 Tree,Tree 是特殊化的Graph
#### 1.二叉树的表示方法
```java
class TreeNode {
int val;
TreeNode left, right;
TreeNode(int val…
-
It would be nice if BTreeSet and BTreeMap had visualizers. These seem to be in `.natvis` files for other `std` collections, but the BTree structures seem to have been overlooked.
As it is now, debugg…
rotu updated
2 months ago
-
Syntax files should be config files that describe a language backend via a set of configurations. When generating code, re2c would map various codegen concepts to the descriptions provided by the synt…
-
This is similar to the resolved issue https://github.com/rust-lang/rust/issues/85636 , but details a newer iteration of that problem that has not yet been fixed.
Code example
```rust
trait Mini…
-
Hello!
I tried to contact you by e-mail and Reddit, but that didn't seem to reach you, so posting here in hopes that I could get some better insight on your fast search algorithm. Apologies for ask…
-
Can we have a reputation datatype?
``` [rep: [id:,rating:, comment: ]]```
ID: To give context (is this rep for taxis, dentistry, cobbling, etc)
Rating: 1-100 seems the most flexible as different …