From ed6a7bbdf563d40c5a6733ef355eb866e4eb564a Mon Sep 17 00:00:00 2001 From: YuJian Date: Tue, 24 May 2022 15:10:53 +0800 Subject: [PATCH] vault backup: 2022-05-24 15:10:53 --- .obsidian/plugins/obsidian-git/data.json | 20 ------------------- .../算法之美 - 递归.md | 6 +++++- 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/.obsidian/plugins/obsidian-git/data.json b/.obsidian/plugins/obsidian-git/data.json index c484db5..e69de29 100644 --- a/.obsidian/plugins/obsidian-git/data.json +++ b/.obsidian/plugins/obsidian-git/data.json @@ -1,20 +0,0 @@ -{ - "commitMessage": "vault backup: {{date}}", - "autoCommitMessage": "vault backup: {{date}}", - "commitDateFormat": "YYYY-MM-DD HH:mm:ss", - "autoSaveInterval": 5, - "autoPullInterval": 1, - "autoPullOnBoot": false, - "disablePush": false, - "pullBeforePush": true, - "disablePopups": false, - "listChangedFilesInMessageBody": false, - "showStatusBar": true, - "updateSubmodules": false, - "syncMethod": "merge", - "gitPath": "", - "customMessageOnAutoBackup": false, - "autoBackupAfterFileChange": false, - "treeStructure": false, - "refreshSourceControl": true -} \ No newline at end of file diff --git a/数据结构与算法之美/算法之美 - 递归.md b/数据结构与算法之美/算法之美 - 递归.md index 925c628..1f39841 100644 --- a/数据结构与算法之美/算法之美 - 递归.md +++ b/数据结构与算法之美/算法之美 - 递归.md @@ -1,2 +1,6 @@ 只要同时满足以下三个条件,就可以用递归来解决: -1. 一个问题的解可以分解为几个子问题的解 \ No newline at end of file +1. 一个问题的解可以分解为几个子问题的解 +2. 这个问题与分解之后的子问题,除了数据规模不同,求解思路完全一样 +3. 存在递归终止条件 + +写递归代码最关键的是写出递推公式,找到终止条件 \ No newline at end of file