上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页
摘要: 这里是12.23随笔 题目留档:给定两个字符串 s 和 t ,它们只包含小写字母。 字符串 t 由字符串 s 随机重排,然后在随机位置添加一个字母。 请找出在 t 中被添加的字母。 示例 1: 输入:s = "abcd", t = "abcde" 输出:"e" 解释:'e' 是那个被添加的字母。 示 阅读全文
posted @ 2024-12-23 21:49 Thanatos。syts 阅读(13) 评论(0) 推荐(0)
摘要: 这里是12.20随笔 题目留档:本题要求实现堆排序中的筛选函数,待排序列的长度1<=n<=1000。 函数接口定义: void HeapAdjust( HeapType H, int s, int m); 其中L是待排序表,使排序后的数据从小到大排列。 类型定义: typedef int KeyTy 阅读全文
posted @ 2024-12-20 10:39 Thanatos。syts 阅读(16) 评论(0) 推荐(0)
摘要: 这里是12.18随笔 题目留档: 6-4 快速排序 分数 10 作者 DS课程组 单位 临沂大学 本题要求实现快速排序的一趟划分函数,待排序列的长度1<=n<=1000。 函数接口定义: int Partition ( SqList L, int low, int high ); 其中L是待排序表, 阅读全文
posted @ 2024-12-18 19:23 Thanatos。syts 阅读(23) 评论(0) 推荐(0)
摘要: 这里是12.17随笔 UML图绘制 -- 类图:https://blog.csdn.net/Qhx20040819/article/details/132268512?ops_request_misc=%257B%2522request%255Fid%2522%253A%252238d718ecb9 阅读全文
posted @ 2024-12-17 17:34 Thanatos。syts 阅读(12) 评论(0) 推荐(0)
摘要: 这里是12.16随笔 代码留档:package come; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet 阅读全文
posted @ 2024-12-16 23:12 Thanatos。syts 阅读(9) 评论(0) 推荐(0)
摘要: 这里是12.12随笔。 题目留档:7-1 整型关键字的散列映射 分数 30 作者 DS课程组 单位 浙江大学 给定一系列整型关键字和素数 p,用除留余数法定义的散列函数 H(key)=key%p 将关键字映射到长度为 p 的散列表中。用线性探测法解决冲突。 输入格式: 输入第一行首先给出两个正整数 阅读全文
posted @ 2024-12-12 21:24 Thanatos。syts 阅读(14) 评论(0) 推荐(0)
摘要: 这里是12.11随笔。 代码留档:#include<stdio.h> include<stdlib.h> include<string.h> int main(){ int i,n,p,x,k; scanf("%d %d",&n,&p); int s=(int )malloc(sizeof(int) 阅读全文
posted @ 2024-12-11 19:02 Thanatos。syts 阅读(18) 评论(0) 推荐(0)
摘要: 这里是12.10随笔。 题目留档:实现线性探测法的查找函数。 函数接口定义: Position Find( HashTable H, ElementType Key ); 其中HashTable是开放地址散列表,定义如下: define MAXTABLESIZE 100000 /* 允许开辟的最大散 阅读全文
posted @ 2024-12-10 22:55 Thanatos。syts 阅读(13) 评论(0) 推荐(0)
摘要: 这里是12.9随笔。 代码留档:#include <stdio.h> include <stdlib.h> define MAX 1024 typedef struct Hash_{ int HashList[MAX]; int Length; }Hash, *PHash; int main(){ 阅读全文
posted @ 2024-12-09 17:20 Thanatos。syts 阅读(8) 评论(0) 推荐(0)
摘要: 这里是12.6随笔 英语作文留档: Procrastination is a common yet harmful habit. It stealthily creeps into our lives and begins to disrupt our normal routines. It cau 阅读全文
posted @ 2024-12-06 10:31 Thanatos。syts 阅读(29) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页