03 2023 档案
摘要:单链表 #include <iostream> using namespace std; const int N = 1e6+10; int shuzhi[N], next_position[N]; int head, idx ; //头结点下标、当前的下标 void init() { head =
阅读全文
摘要:双指针算法 O(n) 采用双指针算法的前提是具有单调性 题目:提取单词 #include <iostream> #include <string.h> using namespace std ; const int N = 1e3+10; int main(){ char str[1000]; ge
阅读全文
摘要:高精度加法 (常规只能到10^6次方) 思想:1、大整数存储:每一位存入数组,个位存在前,高位存在后(和常规表示是反的); 2、模拟手算加法的步骤,进位 #include <iostream> #include <vector> using namespace std; const int n =
阅读全文
摘要:这几天为一个项目按照detectron2苦恼了很久,yysy,配环境真不是个简单事情 如上图,安装固定版本的detectron2一直报错。参考了一些博主的方法后还是走了不少弯路。 解决方案 登录这个网址:https://gitcode.net/mirrors/facebookresearch/det
阅读全文