摘要: /* 你的代码将被嵌在这里 */BinTree Insert(BinTree BST, ElementType X){ if (BS... 阅读全文
posted @ 2020-10-11 12:07 _Hsiung 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 不熟悉静态链表利用左右子节点下标建树,以及如何寻找根节点,使用静态链表建树传入根节点只要传入根节点下标。 #include<iostream> #include<algorithm> #include<stack> #include<cstring> using namespace std; str 阅读全文
posted @ 2020-10-11 12:07 _Hsiung 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 每k个翻转一次 这次算彻底搞懂了翻转链表的各种写法了,花费了大概2个小时才想明白 对比静态链表的部分翻转,这个是技术活,而静态链表是... 阅读全文
posted @ 2020-10-08 16:12 _Hsiung 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 求a0+a1x+a2x^ 2+…anx^ n 数组a存系数 int QinJiuShao(int n,double a[], int... 阅读全文
posted @ 2020-10-07 16:49 _Hsiung 阅读(129) 评论(0) 推荐(0) 编辑
摘要: #include#include //试着加加constusing namespace std;const int defaultS... 阅读全文
posted @ 2020-10-05 20:15 _Hsiung 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 正则好难wow import reimport osimport requests# https://i2.hoopchina.co... 阅读全文
posted @ 2020-10-01 16:19 _Hsiung 阅读(84) 评论(0) 推荐(0) 编辑
摘要: requests实战之搜索引擎爬取搜索内容 import requests#指定urlurl='https://www.sogou.... 阅读全文
posted @ 2020-09-30 17:41 _Hsiung 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 试设计一个算法,改造一个带表头结点的双向链表,所有结点的原有次序保持在各个结点的右链域rLink中,并利用左链域ILink把所有结点... 阅读全文
posted @ 2020-09-24 22:02 _Hsiung 阅读(121) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;struct node{ char dat... 阅读全文
posted @ 2020-09-21 20:30 _Hsiung 阅读(309) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;int a[1000000];int max3(int a, int b, ... 阅读全文
posted @ 2020-09-20 22:54 _Hsiung 阅读(57) 评论(0) 推荐(0) 编辑