摘要: #include<iostream> #include<stack> #include<vector> struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) { val = x; left = null 阅读全文
posted @ 2021-08-19 18:54 appearAndLeave 阅读(32) 评论(0) 推荐(0)
摘要: 插入排序 #include<iostream> #include<vector> using namespace std; void insertSort(vector<int> &arr) { //插入sort int key = 0; int j = 0; for(int i = 1; i < 阅读全文
posted @ 2021-08-19 18:53 appearAndLeave 阅读(45) 评论(0) 推荐(0)