From 5dc13cb9290919b1ff0b09455eca8e95360a8b5d Mon Sep 17 00:00:00 2001 From: SuYindu Date: Sat, 4 May 2019 13:19:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20bug:=20fix=20a=20bug(memory?= =?UTF-8?q?=20leak)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AdvancedLevel_C++/1159. Structure of a Binary Tree (30).cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AdvancedLevel_C++/1159. Structure of a Binary Tree (30).cpp b/AdvancedLevel_C++/1159. Structure of a Binary Tree (30).cpp index 61bea59..fbec406 100644 --- a/AdvancedLevel_C++/1159. Structure of a Binary Tree (30).cpp +++ b/AdvancedLevel_C++/1159. Structure of a Binary Tree (30).cpp @@ -76,5 +76,7 @@ int main() { } cout << (flag ? "Yes" : "No") << endl; } + free(postorder); + free(inorder); return 0; } \ No newline at end of file From de57fd0dff117f0f8e99386d7d823961e5d708fe Mon Sep 17 00:00:00 2001 From: SuYindu Date: Sat, 4 May 2019 13:22:34 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20docs:=20update=20readm?= =?UTF-8?q?e(add=20indices=20of=201156=20to=2019)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 022deca..d47d158 100644 --- a/README.md +++ b/README.md @@ -174,10 +174,10 @@ PAT的这个仓库我一直在维护,包括每次考试后新出的题目都 | 1153 | Decode Registration Card of PAT (25) | [查看题解](https://www.liuchuo.net/archives/8023) | 模拟,排序,map | | 1154 | Vertex Coloring (25) | [查看题解](https://www.liuchuo.net/archives/8025) | STL的应用,set,hash | | 1155 | Heap Paths (30) | [查看题解](https://www.liuchuo.net/archives/8027) | 深搜回溯,堆 | -| 1156 | Sexy Primes (20) | [查看题解]() | 水题 | -| 1157 | Anniversary (25) | [查看题解]() | 模拟,set | -| 1158 | Telefraud Detection (25) | [查看题解]() | 模拟,并查集,排序 | -| 1159 | Structure of a Binary Tree (30) | [查看题解]() | 中序后序建树,树的遍历 | +| 1156 | Sexy Primes (20) | [查看题解](./AdvancedLevel_C++/1156.%20Sexy%20Primes%20(20).cpp) | 水题 | +| 1157 | Anniversary (25) | [查看题解](./AdvancedLevel_C++/1157.%20Anniversary%20(25).cpp) | 模拟,set | +| 1158 | Telefraud Detection (25) | [查看题解](./AdvancedLevel_C++/1158.%20Telefraud%20Detection%20(25).cpp) | 模拟,并查集,排序 | +| 1159 | Structure of a Binary Tree (30) | [查看题解](./AdvancedLevel_C++/1159.%20Structure%20of%20a%20Binary%20Tree%20(30).cpp) | 中序后序建树,树的遍历 | # PAT乙级题解