- 博客(14)
- 收藏
- 关注
原创 Texstudio 与 SumatraPDF双向搜索设置
为了实现在tex文件与pdf文件之间互相跳转。设置:Texstudio:选项→设置→命令→外部PDF查看器"Your path for sumatraPDF/SumatraPDF.exe" -forward-search "?c:am.tex" @ -inverse-searchSumatraPDF:设置→选项"Your path for texstudio\texstudio.exe" "%f" -line %l...
2022-01-11 20:15:09 1287
原创 Ubuntu18.04 安装Vimplus出现的问题
安装 vimPlus (我选择 python3)git clone https://github.com/chxuan/vimplus.git ~/.vimpluscd ~/.vimplus./install.sh存在的问题 “The ycmd server SHUT DOWN (restart with ‘:YcmRestartServer’).”解决:cd ~/.vim/plugged/YouCompleteMe/./install.py参考:https://blog.csdn.n
2021-09-21 17:27:44 246
原创 排序算法——归并排序
新手上路,记录一下#include <iostream>using namespace std;#include <ctime>void merge_sort_recursive(int arr[], int reg[], int start, int end) { if (start >= end) { return; } int mid = start + (end - start) / 2; int start1 = start, end1 = .
2021-08-15 15:11:02 72
原创 查找算法—二分法
新手上路,记录一下二分法:适用于有序序列查找1. 查找一个数2. 查找满足一定条件的左边界3.查找满足一定条件的右边界1. 查找一个数如果有重复元素,则查找第一个满足条件的数class Solution{public: int BinarySearch(vector<int>& nums, int target){ int n = nums.size(); int left = 0, right = n - 1; wh.
2021-07-12 16:35:33 78
原创 排序算法——堆排序
#include <iostream>using namespace std;//打印void Myprintf(int* arr, int length){ for (int i = 0;i < length;++i) { cout << arr[i] << " "; } cout << endl;}//交换两数void Myswap(int* num1, int* num2){ int temp = *num1; *
2021-06-24 16:38:43 74
原创 排序算法——快速排序
快速排序(三数取中)记录一下学习过程#include <iostream>using namespace std;#include <time.h> //计算程序运行时间//打印void Myprintf(int arr[], int len){ for (int i = 0; i < len; ++i) { cout << arr[i] << " "; } cout << endl;}//获取比较基准
2021-06-24 16:04:56 103
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人