自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(36)
  • 收藏
  • 关注

原创 Qt编程(不断更新)

Qt编程

2024-07-14 12:04:46 102

原创 牛客网刷题总结(不断更新)

牛客刷题总结

2024-07-08 22:38:59 187

原创 Python实现堆排序

Python实现堆排序,附源代码

2022-08-27 08:39:45 922 1

原创 Python编程问题总结(不断更新)

Python编程报错问题与解决

2022-08-10 21:39:02 719

原创 Python-Leetcode-最长公共前缀

Python-Leetcode-最长公共前缀

2022-08-09 12:12:28 1622

原创 Python-Leetcode-罗马数字转整数

Leetcode-罗马数字转整数

2022-08-09 09:40:57 1292

原创 数据结构-基数排序

排序算法-基数排序

2022-08-07 21:16:34 95 1

原创 数据结构-桶排序

桶排序实现

2022-08-07 19:53:41 299

原创 数据结构--所有排序算法实现

数据结构--排序算法

2022-08-07 12:53:47 148

原创 数据结构-双向冒泡

头文件Sort.h#include<stdio.h>void doublebubble(int *L, int n);void swap(int *a, int *b);函数实现DoubleBubble.c#include"Sort.h"void swap(int *a,int *b) { int temp; temp = *a; *a = *b; *b = temp;}void doublebubble(int *L,int n) { int low .

2022-05-15 16:21:21 174

原创 数据结构-二叉树四种遍历实现

头文件Queue.h(为实现层次遍历)#include<stdio.h>#include<malloc.h>#include<assert.h>#include<stdbool.h>struct BinTreeNode;typedef BinTreeNode* EType;typedef struct QueueNode { BinTreeNode* data; struct QueueNode *next;}QueueNode;.

2022-05-09 20:47:44 362

原创 数据结构-链式队列实现

头文件Queue.h#include<stdio.h>#include<malloc.h>#include<assert.h>typedef int ElemType;typedef struct QueueNode { ElemType data; struct QueueNode *next;}QueueNode;typedef struct LinkQueue { QueueNode *front; QueueNode *tail;}L.

2022-05-09 20:06:02 387

原创 数据结构-栈的应用

头文件SeqStack.h#include<stdio.h>#include<malloc.h>#include<assert.h>#include<stdbool.h>#include<string.h>#define STACK_INIT_SIZE 8#define INC_SIZE 3typedef char ElemType;typedef struct SeqStack { ElemType *base; i.

2022-05-03 13:20:09 201

原创 数据结构-顺序队列实现

头文件SeqQueue.h#include<stdio.h>#include<malloc.h>#include<assert.h>#define MAXSIZE 10typedef int ElemType;typedef struct Queue { ElemType *base; int front; int rear;}Queue;void InitQueue(Queue*Q);void EnQueue(Queue *Q, ElemT.

2022-05-03 11:56:11 827

原创 数据结构-链栈实现

头文件(LinkStack.h)#include<stdio.h>#include<malloc.h>#include<assert.h>typedef int ElemType;typedef struct StackNode { ElemType data; struct StackNode *next;}StackNode,*LinkStack;void InitStack(LinkStack *s);void Push(LinkStac.

2022-05-03 11:25:42 118

原创 数据结构-顺序栈实现

头文件(SeqStack.h)#include<stdio.h>#include<malloc.h>#include<assert.h>#include<stdbool.h>#define STACK_INIT_SIZE 8#define INC_SIZE 3typedef int ElemType;typedef struct SeqStack { ElemType *base; int top; int capacity;}.

2022-05-03 00:33:09 388

原创 C语言-所有排序实现

头文件Insert.h#include<stdio.h>void Swap(int *a, int *b);void StraightInsert(int *a, int n);测试文件Main.c#include<stdio.h>#include"Insert.h" int main() { //1.直接插入排序(从小到大) int L[8] = { 49,38,65,97,76,13,27,49 }; int n = 8; Stra.

2022-04-27 18:37:30 969

原创 数据结构-双向链表实现

头文件DList.h#include<stdio.h>#include<malloc.h>#include<assert.h>typedef int ElemType;typedef struct Node { ElemType data; struct Node*next; struct Node*prio;}Node, *PNode;typedef struct List { PNode first; PNode last; int s.

2022-04-21 15:25:50 1295

原创 数据结构-循环单链表实现

头文件SCList,htypedef int ElemType;typedef struct Node { ElemType data; struct Node *next;}Node, *PNode;typedef struct List { PNode first; PNode last; int size;}List;void InitList(Node *list);//初始化Node *buy_node(Node *list);//创建节点void push.

2022-04-19 21:10:46 707

原创 数据结构-单链表实现

头文件SList.h#define ElemType int #include<stdio.h>#include<malloc.h>#include<assert.h>typedef struct Node {//结点类型 ElemType data; struct Node *next;}Node,*PNode;typedef struct List {//mylist单链表的结构 PNode first; PNode last; size.

2022-04-18 09:32:58 86

原创 C语言-逆序链表

完整源代码:#include<stdio.h>#include <stdlib.h> typedef struct node { int id; struct node *next; }node; int main() { node* head = (node*)malloc(sizeof(node));//创建head结点 head->next = NULL; node *p = head;//工作指针p printf("请输入第一个结

2022-04-17 13:50:53 863

原创 C语言-该日期是本年第几天

完整源代码:#include<stdio.h>#include"4.17.h"#include <stdio.h>struct Date //定义一个结构体变量Date{ int year; int month; int day;}date;int days(int year, int month, int day) //days函数判断该日是本年的第几天{ int a[12] = { 31,28,31,30,31,30,31,31,30,31,30,3

2022-04-17 10:44:23 741

原创 数据结构-顺序表实现2

头文件SeqList.h#define SEQLIST_INIT_SIZE 20#define _CRT_SECURE_NO_WARNINGS#include<malloc.h>#include<assert.h>#include<stdlib.h>typedef int ElemType;typedef struct SeqList{ ElemType *base;//存储空间基址 int capacity; int size;//真实数据大小

2022-04-15 10:52:19 945

原创 C语言-冒泡排序

#include<stdio.h>int main() { int a[5]; int i = 0, j = 0, temp = 0; printf("请输入五个整数:\n"); for (i = 0; i < 5; i++) scanf_s("%d", &a[i]); for (i = 1; i <=4; i++) {//5个数需要比较4轮 for (j = 0; j <=4 -i; j++) //每次比较少一个元素 if (a[j] &g.

2022-04-14 21:17:30 213

原创 C语言-字符串拼接(不用strcat函数)

#include<stdio.h>int main() { char str1[100]; char str2[100]; int i = 0, j = 0; printf("请输入字符串1:\n"); gets(str1); printf("请输入字符串2:\n"); gets(str2); while (str1[i] != '\0') { i++;//找到str1的最后一个字符 } while (str2[j] != '\0') { str1[i++] = .

2022-04-14 19:51:02 8380 10

原创 C语言-字符串长度(不使用strlen函数)

#include<stdio.h>#include<string.h>int main() { char s[100]; int count = 0, i = 0; printf("请输入字符串:\n"); gets(s); for (i = 0; i < 100; i++) { if (s[i] == '\0') break; else count++; } printf("%s的长度为%d", s, count);}...

2022-04-14 19:07:25 4279 2

原创 C语言-逆序输出

#include<stdio.h>#include<math.h>int main() { int temp = 0, length = 0; int x[100]; printf("请输入数组长度:\n"); scanf_s("%d", &length); printf("请输入%d个整数:\n", length); for (int i = 0; i < length; i++) scanf_s("%d", &x[i]); for .

2022-04-14 18:19:16 4523 2

原创 C语言-插入排序

#include<stdio.h>#include<math.h>int main() { int i = 0, x[5], j = 0, temp; printf("请输入五个整数:\n"); for (i = 0; i < 5; i++) scanf_s("%d", &x[i]); for (i = 1; i < 5; i++) { for (j = i; j > 0; j--){ if (x[j ] < x[j-1]).

2022-04-14 17:44:38 206

原创 数据结构-顺序表实现1

头文件 SqList.h#define SEQLIST_INIT_SIZE 8#define _CRT_SECURE_NO_WARNINGS#include<malloc.h>#include<assert.h>typedef int ElemType;typedef struct SeqList{ ElemType *base;//存储空间基址 int capacity; int size;//真实数据大小}SeqList;void InitSeqLi

2022-04-14 15:14:48 660

原创 C语言-三角形-11

#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>int main(){ //思路 //1.输出结果看作矩阵 //2.两层循环:外层for控制输出行数,内层两个for,一个是空格,另一个是字母 int i, j, k; for (i = 0; i <= 25; i++)//控制行数 { for (j = 30; j >= i + 3; j--) printf(" "); for (k = 65; k &.

2022-04-14 15:11:52 184

原创 C语言--水仙花--10

#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>int main(){//水仙花 int bai, shi, ge, number; for (number = 100; number < 1000; number++) { bai = number / 100;//百位 shi = (number - bai * 100) / 10;//十位 ge = number % 10;//个位 if (numbe.

2022-04-13 17:05:15 83

原创 C语言-猜数字游戏

#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<math.h>#include<time.h>#include<stdlib.h>//#include<cstddef> //只是C++的头文件不能用在C中#include<stddef.h>void menu();//菜单函数void play();//开始游戏int main(){ int i.

2022-04-04 15:33:16 3451

原创 C语言-100至200之间的素数

#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<math.h>int main(){ //求100-200之间的素数 int i = 0, j = 0, count = 0; for (i = 101; i < 200; i += 2) { for (j = 2; j <= sqrt(i); j++) { if (i%j == 0) break; } if (.

2022-04-03 18:52:48 888

原创 C语言-最大公约数

#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ //求最大公约数 int m=0, n=0, r = 0; printf("请输入两个数:\n"); scanf("%d%d", &m, &n); while (m%n) { r = m % n; m = n; n = r; } printf("最大公约数为%d", n);}...

2022-04-03 18:23:38 670

原创 深度学习-拟合问题

假设:蓝色的圆圈代表苹果,❌代表西瓜。一.欠拟合此处的分类较为欠缺,因为此函数曲线将很多"苹果"分类为”西瓜"二.过拟合此处的分类全部正确,但感觉分类的结果太过细致。而这是由于为分类所提供的特征过多导致。因此这种情况下虽然训练出的函数总是能很好的拟合训练数据,但它无法泛化到新的数据样本中,也就无法实现对新样本的预测。三.合适的拟合该处有两处分类错误,但由于现实世界有噪声,环境,气候等干扰,因此该错误可忽略不计,拟合较为合适。...

2022-03-28 20:41:25 1279

原创 数据结构-单链表LNode,*LinkList

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档文章目录前言 一、pandas是什么? 二、使用步骤 1.引入库 2.读入数据 总结前言提示:这里可以添加本文要记录的大概内容:例如:随着人工智能的不断发展,机器学习这门技术也越来越重要,很多人都开启了学习机器学习,本文就介绍了机器学习的基础内容。提示:以下是本篇文章正文内容,下面案例可供参考一、pandas是什么?示例:pandas 是基于NumPy 的一种工具,该工具是为了解决.

2022-03-22 16:23:43 2286

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除