![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔试题
Min's Blog
北航计算机专业 虚拟现实技术与系统国家重点实验室 关注计算机视觉/显著性检测 20年1月毕业
展开
-
C++ 排序算法
堆排序拜托,面试别再问我堆(排序)了!原创 2019-10-19 00:51:55 · 150 阅读 · 0 评论 -
C++ 二叉树的三种遍历 递归与非递归
#include <iostream>#include <stack>using namespace std;struct biTreeNode{ int val; biTreeNode* left; biTreeNode* right; biTreeNode(int x) : val(x), left(nullptr), rig...原创 2019-10-18 15:50:30 · 197 阅读 · 0 评论 -
C++ 翻转链表
#include <iostream>using namespace std;struct TreeNode{ int val; TreeNode* next; TreeNode(int x): val(x), next(nullptr){};};TreeNode* reverseList(TreeNode* head){ if(hea...原创 2019-10-17 19:45:26 · 226 阅读 · 0 评论 -
C++ 斐波那契 非递归写法
#include <iostream>#include <vector>using namespace std;int Fibonacci(int num){ if(num <= 2) { return 1; } else { vector<int> FibNums(num...原创 2019-10-16 23:23:12 · 306 阅读 · 0 评论 -
C++ 斐波那契 递归法
#include <iostream>//#include <vector>//#include <stack>using namespace std;int Fibonacci(int num){ if(num <= 2) { return 1; } else { re...原创 2019-10-16 23:13:32 · 294 阅读 · 0 评论 -
C++ 中缀表达式转后缀表达式
#include <iostream>#include <vector>#include <stack>using namespace std;bool isPrior(char ch1, char ch2){ if(ch1 == '(') { return true; } if((ch1 == '*...原创 2019-10-16 22:59:03 · 121 阅读 · 0 评论 -
C++ 后缀表达式/逆波兰表达式
#include <iostream>#include <vector>#include <stack>using namespace std;int computePostfixExpression(vector<char> postfixExpression){ stack<int> operands; ...原创 2019-10-16 21:06:50 · 240 阅读 · 0 评论