ahua的头发

导航

2022年7月13日 #

《将博客搬至CSDN》

摘要: 《将博客搬至CSDN》 阅读全文

posted @ 2022-07-13 17:12 ahua的头发 阅读(7) 评论(0) 推荐(0) 编辑

2020年9月24日 #

蓝桥刷题--Red and Black

摘要: poj 1979 Red and Black 题目地址:http://poj.org/problem?id=1979 只是为了学习思想 代码很乱 没有优化 没有修改 只作为自己的记录 #pragma GCC positionimize(3,"Otrst","inline") //#include " 阅读全文

posted @ 2020-09-24 17:32 ahua的头发 阅读(90) 评论(0) 推荐(0) 编辑

蓝桥刷题 --Dungeon Master

摘要: 第一种DFS写法 (超时) #pragma GCC positionimize(3,"Otrst","inline") //#include "emplace.hpp" //#include<bits/stdc++.h> #include<iostream> #include<cstdio> #in 阅读全文

posted @ 2020-09-24 17:29 ahua的头发 阅读(131) 评论(0) 推荐(0) 编辑

2020年7月10日 #

python::列表

摘要: python::列表 访问列表时可以正着访问,也可以直接负数倒数的访问 添加列表元素 append()方法 name.append("cdankj") 插入元素 name.insert(1,"dmask") 删除元素 del(name[3]) del name[3] 通过值来删除(移除时只会移除第一 阅读全文

posted @ 2020-07-10 09:58 ahua的头发 阅读(150) 评论(0) 推荐(0) 编辑

2020年6月16日 #

PYTHON::知识图谱

摘要: 仅当作记录 import py2neo from py2neo import Graph,Node,Relationship import pandas as pd graph = Graph("http://localhost:7474") graph = Graph("http://localh 阅读全文

posted @ 2020-06-16 10:13 ahua的头发 阅读(189) 评论(0) 推荐(0) 编辑

2020年6月13日 #

数据结构::快速排序模板

摘要: 数据结构::快速排序模板 #include <stdio.h> int a[101],n;//定义全局变量,这两个变量需要在子函数中使用 void quicksort(int left, int right) { int i, j, t, temp; if(left > right) return; 阅读全文

posted @ 2020-06-13 17:17 ahua的头发 阅读(188) 评论(0) 推荐(0) 编辑

数据结构::堆排序

摘要: 数据结构::堆排序 #include <stdio.h> void swap(int array[],int x,int y){ int key; key=array[x]; array[x]=array[y]; array[y]=key; } //从大到小排序 //void Down(int ar 阅读全文

posted @ 2020-06-13 17:03 ahua的头发 阅读(177) 评论(0) 推荐(0) 编辑

数据结构::二叉树的基本操作

摘要: 数据结构::二叉树的基本操作 #include <iostream> #include <stdlib.h> #include<bits/stdc++.h> using namespace std; //数据元素类型 typedef char ElemType; //二叉树结点定义 typedef 阅读全文

posted @ 2020-06-13 10:54 ahua的头发 阅读(452) 评论(0) 推荐(0) 编辑

2020年6月12日 #

数据结构::树常考的性质

摘要: 数据结构::树常考的性质 1.结点数=总度数+1 2.度数为m的树和m叉树的区别 3. 4. 5. 6. 阅读全文

posted @ 2020-06-12 21:51 ahua的头发 阅读(162) 评论(0) 推荐(0) 编辑

数据结构::KMP算法模板

摘要: 数据结构::KMP算法模板 NEXT数组: //优化过后的next 数组求法 void GetNextval(char* p, int next[]) { int pLen = strlen(p); next[0] = -1; int k = -1; int j = 0; while (j < pL 阅读全文

posted @ 2020-06-12 17:47 ahua的头发 阅读(111) 评论(0) 推荐(0) 编辑